Page 1 of 1
About Question enthuware.oce-jpad.v6.2.601 :
Posted: Wed Jul 11, 2012 3:02 pm
by jszczepankiewicz
There is: "The managed entities of the entity manager will become detached with the transaction is rolled back."
Should be: "The managed entities of the entity manager will become detached when the transaction is rolled back."
Re: About Question enthuware.oce-jpad.v6.2.601 :
Posted: Sun Jul 15, 2012 11:44 pm
by admin
This has now been fixed. Thank you for your feedback!
Re: About Question enthuware.oce-jpad.v6.2.601 :
Posted: Sun Sep 02, 2012 5:54 am
by cosminvacaroiu
Isn't this true ?
Code: Select all
The managed entities of the entity manager will become detached when the transaction is rolled back.
Re: About Question enthuware.oce-jpad.v6.2.601 :
Posted: Sun Sep 02, 2012 6:54 am
by admin
As the explanation says, this is not true for an extended scoped entity manager. The entities remain managed as long as the entity manager is not closed.
HTH,
Paul.
Re: About Question enthuware.oce-jpad.v6.2.601 :
Posted: Sat Aug 31, 2013 5:42 pm
by unknownartist
Specification says;
3.3.2 Transaction Rollback
For both transaction-scoped and extended persistence contexts, transaction rollback causes all pre-existing
managed instances and removed instances[31] to become detached. The instances’ state will be the
state of the instances at the point at which the transaction was rolled back. Transaction rollback typically
causes the persistence context to be in an inconsistent state at the point of rollback. In particular, the
state of version attributes and generated state (e.g., generated primary keys) may be inconsistent.
Instances that were formerly managed by the persistence context (including new instances that were
made persistent in that transaction) may therefore not be reusable in the same manner as other detached
objects—for example, they may fail when passed to the merge operation.[32]
So, option 4 also must be true.
Re: About Question enthuware.oce-jpad.v6.2.601 :
Posted: Sun Sep 01, 2013 7:46 am
by admin
You are right. This has now been updated.
thank you for your feedback!
Paul.