[
https://issues.jboss.org/browse/WFLY-11891?page=com.atlassian.jira.plugin...
]
Scott Marlow edited comment on WFLY-11891 at 3/21/19 5:37 PM:
--------------------------------------------------------------
Attached javassist.log is from running "mvn clean install
-Dtest=org.jboss.as.test.integration.jpa.transaction.TransactionTestCase" with
"./standalone.sh -Dhibernate.bytecode.provider=javassist" and TRACE logging
enabled for org.jboss.as.jpa, which will show the class names being enhanced.
I'll create bytebuddy.log that is from using the same test only with ByteBuddy.
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
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.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)