I am migrating a huge project from Eclipselink to Hibernate JPA that running on Wildfly 10.0
Once moved to Hibernate I got the famous exception " failed to lazily initialize a collection of role "
I found many solutions for this issue like these suggestions on this Question as well as the old OpenSessionInView method.
But these solutions are somehow outdated, and needs some changes on my running existing code that use eclipselink.
Is their a newer, modern, transparent solution that can save my time ?
Note: I am not using spring (only JPA and EJB) .