These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: pb avec les criteria
PostPosted: Mon Feb 19, 2007 11:27 am 
Newbie

Joined: Mon Feb 19, 2007 10:18 am
Posts: 1
Bonjour,
voila mon pb est que quand j'affecte le resultat d'une requete par criteres à une liste j'ai un resultat vide pourtant ce que je dois avoir est au moins un enregistrement de la base
voici le code de la requete

Code:
Criteria critere = session.createCriteria(Configelets.class); critere.add(Expression.eq(Configelets.PROP_ID, 1)); List list = critere.list();

qq un a t il une reponse ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 20, 2007 3:38 am 
Expert
Expert

Joined: Thu Sep 04, 2003 8:23 am
Posts: 368
Ca veut dire quoi que tu dois avoir une réponse ?
Le mieux dans ce cas est d'affiché le sql généré et de jouer cette requête sql avec un éditeur pour voir si tu obtiens réellement quelque chose

_________________
Seb
(Please don't forget to give credits if you found this answer useful :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.