]
Scott Marlow updated WFLY-11891:
--------------------------------
Fix Version/s: 17.0.0.Beta1
(was: No Release)
Add tests that enable JPA entity class bytecode enhancement
-----------------------------------------------------------
Key: WFLY-11891
URL:
https://issues.jboss.org/browse/WFLY-11891
Project: WildFly
Issue Type: Enhancement
Components: JPA / Hibernate
Affects Versions: 16.0.0.Final
Reporter: Scott Marlow
Assignee: Scott Marlow
Priority: Minor
Fix For: 17.0.0.Beta1
Attachments: bytebuddy.log, javassist.log
Pick a few unit tests and add the following settings to enable [entity bytecode
enhancement|http://docs.jboss.org/hibernate/orm/5.3/userguide/html_single...]:
{code}
<property name="hibernate.enhancer.enableDirtyTracking"
value="true"/>
<property name="hibernate.enhancer.enableLazyInitialization"
value="true"/>
<property name="hibernate.enhancer.enableAssociationManagement"
value="true"/>
{code}
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.