About Question enthuware.oce-jpad.v6.2.601 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
jszczepankiewicz

About Question enthuware.oce-jpad.v6.2.601 :

Post 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."

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-jpad.v6.2.601 :

Post by admin »

This has now been fixed. Thank you for your feedback!

cosminvacaroiu

Re: About Question enthuware.oce-jpad.v6.2.601 :

Post 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.

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-jpad.v6.2.601 :

Post 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.

unknownartist
Posts: 5
Joined: Sat Aug 31, 2013 5:39 pm
Contact:

Re: About Question enthuware.oce-jpad.v6.2.601 :

Post 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.

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-jpad.v6.2.601 :

Post by admin »

You are right. This has now been updated.

thank you for your feedback!
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests