Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1527

JtaEntityManager: wrong delegating call, wrong transaction management

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2, 4.7.0
    • 3.2, 4.0-beta-1, 4.0
    • cmp2
    • None

    Description

      There are issues in JPA 2.0 methods:

      • In the following methods:
        public void lock(Object entity, LockModeType lockMode, Map<String, Object>
        properties) {
        public void refresh(Object entity, LockModeType lockMode, Map<String,
        Object> properties) {
        public void refresh(Object entity, LockModeType lockMode) {
        public void refresh(Object entity, Map<String, Object> properties) {
        entityManager is used in place of entity in the delegating call.
      • Transaction management is not always correct (or at least not consistent
        with JPA1 methods)
        e.g. refresh methods does not assume an active transaction.
      • Less important, timing measurement is implemented JPA 1 methods but not JPA2.

      Attachments

        1. jta-entity-manager.patch
          17 kB
          Thibaut Robert

        Activity

          People

            trobert Thibaut Robert
            trobert Thibaut Robert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: