-->
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 loading for attribuite initialized in the constructor
PostPosted: Wed Dec 22, 2004 8:43 am 
Newbie

Joined: Mon Dec 15, 2003 3:34 pm
Posts: 18
Hi

I have identified the following behavior and I am wondering if there is any workaround for this:

If we map an attribute which is a List with a <bag> and we initialize such list with an empty ArrayList (or any other List implementation) in the bean's constructor, Hibernate ignores the lazy=“true” attribute of the <bag> and loads all the elements.

Is there a way to make Hibernate replace the pre initialized List with it's lazy list implementation?

Thank you.

_________________
Gabriel C. Oliveira
Sumersoft Technology, Brazil


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.