private void persistCommitChanges ( JPACommit commit , Long timestamp ) { commit . setTimestamp ( timestamp ) ; addModifiedObjectsToEntityManager ( commit . getJPAObjects ( ) , timestamp ) ; commit . setCommitted ( true ) ; logger . debug ( "persisting JPACommit" ) ; entityManager . persist ( commit ) ; logger . debug ( "mark the deleted elements as deleted" ) ; updateDeletedObjectsThroughEntityManager ( commit . getDeletions ( ) , timestamp ) ; }
Add all the changes which are done through the given commit object to the entity manager .