For batch work it is handy to have for every Entity a new Transaction, So that when one Entity fails it doesn’t roll back all the changes.

So for that there is now a function commitAndStartNewTranasction() which gives back a list of NativeValidationsException.

The function itself flushes the changes, checks the changed entities for validates, does rollback if there is an exception.
Commit the changes and starts a new session/Transaction.

Submitted by chris melman on 12 November 2012 at 15:45

On 12 November 2012 at 15:45 chris melman commented:

implemented in r5490


On 12 November 2012 at 15:45 chris melman closed this issue.

On 12 November 2012 at 15:45 chris melman tagged 1.3.0

Log in to post comments