Bonjour,
je tente de selectionner les enregistrements d'une table d'association en passant en paramettre un objet commande. mais le resultat obtenu est différent de null et quand je test le size() il me renvoit 0.
est ce quelq'un pourrait m'aider. Voic la requette que je lance.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 public List<LigneCommandeClient> getLigneCommandeClientBycmde(CommandeClient cmdeclient) { Session session = getSession(); List<LigneCommandeClient> lignecmdeclient=(List<LigneCommandeClient>)session.createQuery("FROM LigneCommandeClient WHERE cmdeclient=:param") .setParameter("param", cmdeclient).list(); session.flush(); return lignecmdeclient; }
Partager