Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Top Link lazy loading not work on ejb

peppemeDec 13 2007 — edited Dec 18 2007
Hello,

I'm using netbeans 6 + glassfish V2 + TopLink (default on nb 6).

I make a EJB Module and a WEB Module that use the Session Bean from EJB Module.

In EJB module there are two entity beans related by many to many relationship.
The Fetch Type by default is lazy.
So, The entity A has collection of entity B and viceversa.

But when I call a collection properities (by getBcollection() ) lazy loading not working, the collection is not null but empty.

This work fine with FetchType.EAGER but I don't want this.

Why Top Link can't lazy loading?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 15 2008
Added on Dec 13 2007
2 comments
787 views