This content has been marked as final.
Show 1 reply
-
1. Re: seams entityManager and stale records
jeanluc Mar 31, 2010 6:14 PM (in response to nimo22)In your case, since X already exists, it is not transient but managed and the behaviour is as intended. When you change an entity you don't have to call em.persist() and em.flush() explicitly. Read section 3.2
Entity Instance’s Life Cycle
of the EJB persistence spec or any reference on how entities are managed.