-->
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.  [ 4 posts ] 
Author Message
 Post subject: Question about fetch depth
PostPosted: Mon Jun 20, 2005 9:16 pm 
Beginner
Beginner

Joined: Thu Jun 09, 2005 2:33 pm
Posts: 30
I have an HQL query that I'm doing a join fetch to get an association, but how do I go deeper down the chain of associations in one query? Since HQL ignores the mapping "join" settings, can I somehow specify fetch depth in the query? BTW, I'm using HQL because I'm using "distinct" and found this to be the easiest way. However, I'm not populating all of my associations. Thanks for your advice.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 20, 2005 10:32 pm 
Senior
Senior

Joined: Thu May 12, 2005 11:40 pm
Posts: 125
Location: Canada
hibernate.max_fetch_depth


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 20, 2005 10:36 pm 
Beginner
Beginner

Joined: Thu Jun 09, 2005 2:33 pm
Posts: 30
Will HQL use that setting? I thought that was for criteria queries only.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 20, 2005 10:38 pm 
Senior
Senior

Joined: Thu May 12, 2005 11:40 pm
Posts: 125
Location: Canada
Good question -- I prefer QBE/QBC to HQL. Why not try it and let us know?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.