cdiexample
cdiexample copied to clipboard
Entities and Lazy Loading
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.