Objects cannot be modified outside of a transaction

Changes made to persistent objects while outside of a transaction cannot be committed. In order to change persistent objects, the application must begin a new transaction, make changes to the objects, and then commit the transaction.