added function to commit transaction and start a new one
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.Submitted by chris melman on 12 November 2012 at 15:45
Commit the changes and starts a new session/Transaction.