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

Reply via email to