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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.1.0
    • Component/s: docs
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: