Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-448

Documentation fixes (1. openjpa.NontransactionalWrite, 2. setRollbackOnly)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.1
    • 1.1.0
    • docs
    • None

    Description

      I found two things in the documentation that should be fixed I think.

      1.)

      3.2.5.47. openjpa.NontransactionalWrite

      It says "Default: false".

      But the default is 'true'.

      See: org.apache.openjpa.persistence.PersistenceProductDerivation:111
      afterSpecificationSet()
      conf.nontransactionalWrite.setDefault("true");
      conf.nontransactionalWrite.set(true);

      2.)

      3.11.1.1. Detach Behavior

      It says "You can stop OpenJPA from assuming the transaction will commit by invoking OpenJPAEntityManager.setRollbackOnly prior to detaching your objects."

      But OpenJPAEntityManager.setRollbackOnly is deprecated. It should be OpenJPAEntityTransaction.setRollbackOnly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jop Jonas Petersen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: