-->
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: Using subselect fetch in hql queries
PostPosted: Thu Nov 17, 2005 3:47 am 
Newbie

Joined: Mon Jun 20, 2005 8:02 am
Posts: 4
Hibernate version: 3.0.5
Hi,
My entity has an association that I wish to be lazy as default, so in the mapping file no eager fetching is set for this association.
But, I have a query (using HQL) that wants to load everything and I want to specify eager fetching for that query only.
Join won’t help me much, since the association is for the same table (we’re implementing a tree), so I need subselect.

What is the syntax in HQL?
I tried looking at Criteria, but the only FetchModes available are SELECT and JOIN. Why isn’t there a SUBSELECT in the class FetchMode? How can I do it?

Thanks,
avigail.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 23, 2006 8:11 am 
Beginner
Beginner

Joined: Thu Jun 30, 2005 4:20 am
Posts: 40
Location: Vienna
see http://forum.hibernate.org/viewtopic.php?t=945066

regards
Stefan


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.