cdiexample icon indicating copy to clipboard operation
cdiexample copied to clipboard

Entities and Lazy Loading

Open jcstockdale opened this issue 9 years ago • 0 comments

Hi. Thanks for the great starter project. I'm trying to extend this for my own purposes. The first thing I need to do is extend the domain model to contain some additional entities. The problem is that if I have a one-to-many relationship in the Customer class which is lazily loaded, it doesn't appear to get loaded unless I force it to load inside the EJB business method. This seems to defeat the purpose of having lazy loading. Is there an easy way to apply the transaction-per-request pattern here? Thanks.

jcstockdale avatar Dec 02 '15 15:12 jcstockdale