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
|
|