Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-7130

PersistenceProperty specified in @PersistenceContext should be passed to the created EntityManager

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 11.0.0.Alpha1
    • JBoss AS7 7.1.1.Final, 10.1.0.Final
    • JPA / Hibernate
    • None

    Description

      While working on the unit test for WFLY-7075, I noticed that PersistenceContext properties are not being passed correctly to the Injected EntityManager, we should fix that.

      For Example:

      @PersistenceContext(type = PersistenceContextType.TRANSACTION, unitName = "mypc", properties=

      Unknown macro: {@PersistenceProperty(name="wildfly.jpa.allowjoinedunsync", value="true")}

      )
      private EntityManager allowjoinedunsyncEm;

      Is passing an incorrect form of the property values.

      Attachments

        Issue Links

          Activity

            People

              smarlow1@redhat.com Scott Marlow
              smarlow1@redhat.com Scott Marlow
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: