-->
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.  [ 1 post ] 
Author Message
 Post subject: criteria, createAlias and eager fetching question
PostPosted: Sun Nov 14, 2004 12:21 pm 
Newbie

Joined: Sun Nov 14, 2004 12:02 pm
Posts: 1
Hibernate version: 2.14
Can someone explain me the exact relation between eager fetching and outer joins when using criteria queries?
It seems that eager fetching of objects is impossible when using inner joins and I don't understand why?
Hibernate in action says that it is not possible to use eager fetching with aliases. I agree that using an alias imply an inner join but I don't know why it forbids to fill properties of the corresponding object instead of using a proxy.
I have also seen in hibernate code that using a subcriteria on a property creates an alias on this property (in CiteriaaImpl.java). Does it mean that it is impossible to use eager fetching and createCriteria on the same property ?

Thank you
Eric


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

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.