performInTransaction just encapsulates a database transaction, so it has no affect on the object (ORM) level, it only affects what is visible in the database. So the behavior with commitChanges() is the same as it would be outside a performInTransaction block.
On Tue, Mar 20, 2018 at 10:25 AM Juan Manuel Diaz Lara <jmdia...@yahoo.com.invalid> wrote: > runtime.performInTransaction(() -> { > // ... do some changes > context.commitChanges(); > > // ... do more changes > context.commitChanges(); > > return true; > }); Previous code is an example on "Guide to 4.0 Features". > My questions are: > - What is then persistence state of objects after first commitChanges() > ? > > - If second commitChanges() fails, what happen to the persistence > state coming from firs commitChages() ? > - What happen if we return false? > Atte. Juan Manuel Díaz Lara