-->
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: 'lazy' affects 'fetch' semantics
PostPosted: Fri Aug 12, 2005 4:19 pm 
Senior
Senior

Joined: Thu May 12, 2005 11:40 pm
Posts: 125
Location: Canada
According to this, laziness (what is fetched) is orthogonal to the fetching strategy itself (how it is fetched). It seems to follow that for a given many-to-one, which has fetch="select" behaviour by default when the associated class is lazy="proxy", changing the associated class' mapping to lazy="false" should not affect the fetch strategy, yet it does. The fetch strategy changes to fetch="join", meaning we must supply a fetch="select" to revert back to the 'default' behaviour.

Since lazy="false" is almost always used in conjunction with the second level cache, and fetch="select" makes more sense than fetch="join" in those circumstances, I propose that the more sensible behaviour outlined above be restored.

Your thoughts?


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.