Hibernate 5: db connections are still not released (idle in transaction) after lazy loading
问题 In Hibernate 5 there are still big troubles with releasing database connections after initialization of lazy collection. Database connections after lazy initialization of collection are kept in "idle in transaction". So if many users work at the same time, count of open connections is increasing critically. We use hibernate version 5.0.12 , java version 1.8.0_151 , jsf 2.3 , don't use Spring (ORM). There is reported issue for Hibernate version 3.2.7 - HHH-4808 - still opened. The last comment