-->
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: Eager fetching settings ignored in HQL
PostPosted: Fri Jan 06, 2006 9:09 pm 
Beginner
Beginner

Joined: Thu Nov 03, 2005 4:11 pm
Posts: 25
I have chosen to write most of my queries using HQL. But I have now come to a point where I am doing performance tuning and I just discovered that when you write queries in HQL it ignores the fetch mode specified in your class mappings. I really don't understand the reasoning behind this.

This creates a huge inconsistency issue. I like knowing that all my queries are interpreted by hibernate and made consistent per my mapping files.

If this is being provided as a means of flexibility then I think it should be an option that can be turned off/on per query or for all the hql. Is this an option?

Maybe I am misinterpreting this. Could someone explain the reasoning to me? IMO this creates a huge difference between using criteria queries and hql. However in the documentation it seems to indicate that hql and criteria queries are just alternatives, essentially a preference from the users' perspective. But with the fetch mode discrepancy it really isn't just a preference it is a completely different way of doing things.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 09, 2006 4:10 pm 
Beginner
Beginner

Joined: Thu Nov 03, 2005 4:11 pm
Posts: 25
No thoughts on this from anyone?


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.