1. JDO
  2. JDO-589

Allow makePersistent and deletePersistent outside a transaction


    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: JDO 2 maintenance release 1 (2.1)
    • Fix Version/s: JDO 3.2
    • Component/s: api, specification, tck
    • Labels:


      JPA allows users to call makePersistent outside a transaction, and then when beginning and committing a transaction, the instances are made persistent.

      This is similar to nontransactional dirty in which the managed instances can be modified outside a transaction and then the changes committed within a transaction.

      From the JPA spec, "When an EntityManager with an extended persistence context is used, the persist, remove, merge, and refresh operations may be called regardless of whether a transaction is active. The effects of these operations will be committed to the database when the extended persistence context is enlisted in a transaction and the transaction commits."

      This behavior should not be the default behavior (for backward compatibility reasons if not the principle of least surprise) so it should be under control of a PersistenceManager and PersistenceManagerFactory flag, perhaps NontransactionalNew.

        Issue Links


          Craig L Russell made changes -
          Summary Allow makePersistent outside a transaction Allow makePersistent and deletePersistent outside a transaction
          Craig L Russell made changes -
          Link This issue is related to JDO-651 [ JDO-651 ]
          Michael Bouschen made changes -
          Fix Version/s JDO 3 maintenance release 2 (3.2) [ 12316653 ]
          Craig L Russell made changes -
          Field Original Value New Value
          Component/s specification [ 12311332 ]
          Component/s tck2 [ 11652 ]
          Craig L Russell created issue -


            • Assignee:
              Craig L Russell
            • Votes:
              0 Vote for this issue
              2 Start watching this issue


              • Created: