Hi Daniel Does this example work for you? https://github.com/apache/tomee/tree/master/examples/jpa-hibernate? It should be using Hibernate 5.4.
I'll attempt to specifically answer your question - Hibernate appears to rely on CDI being available. I don't know why (I don't have that level of expertise with Hibenate). When we setup JPA at deploy time, CDI is on the classpath, but the various scopes are not available. The flag you mention serves as a workaround to enable Hibernate to work in this scenario. Jon On Mon, Apr 13, 2020 at 3:15 PM Daniel Dias Dos Santos < daniel.dias.analist...@gmail.com> wrote: > Hello friends, > > I have a doubt about using Hibernate 5 in TomEE . > > Why I have that use the <property name="tomee.jpa.factory.lazy" > value="true" /> in persistence.xml for work fine ? > > I find an article about this [1] , but I not understand right about your > use . > someone can explication about this ? > > [1] > > https://fmdojo.wordpress.com/2017/05/07/tomee-7-and-hibernate-5-2-persistence-xml/ > > thanks : ) >