Since Hibernate ORM 6.x the {{FetchType.EAGER}} raises the following error when called from native queries
{noformat}could not initialize proxy [org.hibernate.domain.Building#0] - no Session {noformat}
Using the same {{@Entity}} with hibernate {{createQuery()}}, everything works as expected
I’ve create created a test case [available on github|https://github.com/unipa/Hibernate-Native-Query-EAGER-regression]
After cloning the repo, just run {{mvn package}} |
|