Bonjour à toutes et à tous,
J'ai un problème qui me bloque depuis deux jours. je commence réellement à désespérer.
Donc merci d'avance de votre aide;
En effet, j'utilise la méthode suivante dans ma servlet: "alhou.inscrire(id,log);" définie ainsi dans mon bean:
A l'exécution j'ai l'erreur suivante:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 public void inscrire(int idTache, String log) { Tache t= findTache(idTache); Query q=em.createQuery("From Participants p WHERE p.login="+log); Participants p=(Participants)q.getSingleResult(); List<Participants> lp= t.getLeParticipant(); lp.add(p); t.setLeParticipant(lp); // em.persist(t); }
Je ne sais plus quoi faire. J'ai tout essayé; rien du tout.
Code : Sélectionner tout - Visualiser dans une fenêtre à part Caused by: java.sql.SQLException: Column not found: ADMIN in statement [select top ? participan0_.idParticipants as idPartic1_179_, participan0_.login as login179_, participan0_.password as password179_, participan0_.specialite as specialite179_, participan0_.statut as statut179_ from Participants participan0_ where participan0_.login=admin]
Merci de m'aider please.
Partager