This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git
The following commit(s) were added to refs/heads/master by this push:
new 7e8efdd Minor: Fixes chicken egg issue after upgrading to Hibernate 6
7e8efdd is described below
commit 7e8efdd41dd07a881c3265feed0c375026ff5267
Author: Richard Zowalla <[email protected]>
AuthorDate: Sat Mar 26 12:25:09 2022 +0100
Minor: Fixes chicken egg issue after upgrading to Hibernate 6
---
.../openejb/arquillian/tests/cmp/sample/persistence-hibernate.xml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git
a/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/resources/org/apache/openejb/arquillian/tests/cmp/sample/persistence-hibernate.xml
b/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/resources/org/apache/openejb/arquillian/tests/cmp/sample/persistence-hibernate.xml
index 6799035..dcf387e 100644
---
a/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/resources/org/apache/openejb/arquillian/tests/cmp/sample/persistence-hibernate.xml
+++
b/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/resources/org/apache/openejb/arquillian/tests/cmp/sample/persistence-hibernate.xml
@@ -27,6 +27,13 @@
<properties>
<property name="hibernate.hbm2ddl.auto" value="update"/>
<property name="hibernate.show_sql" value="true" />
+ <!--
+ JPA and CDI are linked, enabling JPA to use CDI for its
+ components but CDI can use JPA too. To solve issues with
+ hibernate you need this property either as system property
+ or persistence unit
+ -->
+ <property name="tomee.jpa.factory.lazy" value="true"/>
</properties>
</persistence-unit>
</persistence>
\ No newline at end of file