This content has been marked as final.
Show 2 replies
-
1. Re: ne emf.createEntityManager(EXTENDED) any more?
bill.burke Oct 13, 2006 12:31 PM (in response to taprogge)EMF always returns an extended EM now.
-
2. Re: ne emf.createEntityManager(EXTENDED) any more?
taprogge Oct 13, 2006 2:03 PM (in response to taprogge)Hmm... why then do I get "detached object passed to persist" when I try to persist a newly created entity with collection mapping?
I can persist anything just fine, but when I create an entity that holds a List of other entities (even when the list is still empty), that fails.
I have already tried to merge() the entit instead of persisting it, but then em.find will return null for it while still in the same transaction. I would expect to see and use the entity later on to fill that collection...
I am confused,
Phil