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."
About Question enthuware.oce-jpad.v6.2.601 :
Moderators: Site Manager, fjwalraven
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-jpad.v6.2.601 :
This has now been fixed. Thank you for your feedback!
Re: About Question enthuware.oce-jpad.v6.2.601 :
Isn't this true ?
Code: Select all
The managed entities of the entity manager will become detached when the transaction is rolled back.
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-jpad.v6.2.601 :
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.
HTH,
Paul.
-
- Posts: 5
- Joined: Sat Aug 31, 2013 5:39 pm
- Contact:
Re: About Question enthuware.oce-jpad.v6.2.601 :
Specification says;
So, option 4 also must be true.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]
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-jpad.v6.2.601 :
You are right. This has now been updated.
thank you for your feedback!
Paul.
thank you for your feedback!
Paul.
Who is online
Users browsing this forum: No registered users and 3 guests