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

Add tests that enable JPA entity class bytecode enhancement

    XMLWordPrintable

Details

    Description

      Pick a few unit tests and add the following settings to enable entity bytecode enhancement:

      <property name="hibernate.enhancer.enableDirtyTracking" value="true"/>
      <property name="hibernate.enhancer.enableLazyInitialization" value="true"/>
      <property name="hibernate.enhancer.enableAssociationManagement" value="true"/>
      

      Steps to reproduce:

      • Build WildFly
      • cd testsuite/integration/basic
      • mvn clean install -Dtest=org.jboss.as.test.integration.jpa.transaction.TransactionTestCase
      • mvn clean install -Dtest=org.jboss.as.test.integration.jpa.hibernate.management.ManagementTestCase
      • mvn clean install -Dtest=org.jboss.as.test.integration.jpa.entitylistener.EntityListenersTestCase
      • mvn clean install -Dtest=org.jboss.as.test.integration.jpa.secondlevelcache.JPA2LCTestCase

      Note that the org.jboss.as.test.integration.jpa.transaction.TransactionTestCase test should pass since javassist is specified in the persistence.xml but that seems to be ignored (we still get the ByteBuddy failure).

      To workaround failures, prestart wildfly via: ./standalone.sh -Dhibernate.bytecode.provider=javassist and then run tests.

      Attachments

        1. bytebuddy.log
          8 kB
        2. javassist.log
          25 kB

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: