Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
2.1.0
-
None
-
None
Description
If I use openjpa.DetachState=fetch-groups and detach an entity with a lazy loaded list, this list gets reset to null.
An example:
class @Entity Person {
private String name;
@OneToMany(mappedBy = "group", cascade =
{CascadeType.ALL})
private List<Subscription> subscriptions = new ArrayList<Subscription>();
...}
I load the Person and access the subscriptions inside a transaction. I get a person instance with e.g. 3 subscriptions.
If I now close the EntityManager and my person gets detached, the subscriptions list is suddenly null!