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: problème session Hibernate
PostPosted: Mon Dec 11, 2006 10:33 am 
Newbie

Joined: Mon Dec 11, 2006 10:27 am
Posts: 2
Bonjour,
après avoir cru que c'était un problème lié au EJB 3, je me rend compte que c'est à vous -spécialiste Hibernate- que je devais m'addresser afin de trouver une solution à mon problème
je vous prie ainsi de regarder le lien suivant: http://www.developpez.net/forums/showthread.php?p=1586958#post1586958 regardez surtout les deux dernier post. et n'hésitez pas à m'orienter d'avantage.
je vous remercie d'avance.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 15, 2006 7:39 pm 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
Le chemin qui t'a été indiqué est le bon en tout cas. Il faut que tu fasses une jointure. C'est le seul moyen de charger ta collection pour ne pas passer par le chargement tardif, impossible si la session est fermée.

Par contre, tes requêtes sont soit destinées à requêter des DTO soit du JPA, où il me semble que le select est obligatoire.

En HQL classique, on écrirait plutôt un truc du genre (désolé, je fais peu de HQL, bcp plus de Criteria) :
"from TermSource left join fetch termProjs"

_________________
Baptiste
PS : please don't forget to give credits below 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.