Hello,
I'm using Hibernate 3.2.4.sp1 via JPA together with a JSF and Seam. I only use persistent objects, nothing is detached. I use only LAZY mappings of collections. There are 2 PERSIST cascades, one on a collection, the other on an association.
The scenario with the problem is the following: I'm loading two entities in the persistence context. I do some work, including some other entities creation. Then I persist the new entities and flush the (same) persistence context. Upon flushing all the lazy collections of the two loaded entities are retrieved from the database (as SQL logs say). Why is this happening, am I missing something? Can I disable this loading?
Thank you.
|