OpenJPA
  1. OpenJPA
  2. OPENJPA-448

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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.

        Activity

        Jonas Petersen created issue -
        Hide
        Patrick Linskey added a comment -

        Updated the default. It turns out that the deprecation issue was actually already fixed in trunk.

        Show
        Patrick Linskey added a comment - Updated the default. It turns out that the deprecation issue was actually already fixed in trunk.
        Patrick Linskey made changes -
        Field Original Value New Value
        Fix Version/s 1.1.0 [ 12312344 ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        17h 5m 1 Patrick Linskey 21/Nov/07 03:49
        Resolved Resolved Closed Closed
        839d 14h 43m 1 Donald Woods 09/Mar/10 18:32

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development