-->
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: Why do lazy collections load on add?
PostPosted: Mon Oct 22, 2012 1:40 pm 
Newbie

Joined: Wed Apr 21, 2010 5:24 pm
Posts: 2
Lazy collections have the following properties:
*Any operation, even an add, causes the collection to be loaded.
*When the collection is loaded, all elements are loaded at once.

Extra-lazy collections have the following properties:
*Some operations, such as add, do not cause the collection to be loaded, or even counted.
*Elements of the collection are loaded individually, as needed.

Since it's possible for elements to be added to an extra-lazy collection without loading, or even counting, the collection, why does adding elements to a lazy collection force loading?


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.