| Same for me on Hibernate 4.3.11.Final. On Hibernate 5 the issue seems to have been fixed. However, the issue is not specific to eager loading, I still get the error when doing lazy loading, it's just a different exception at a different point: EAGER: org.hibernate.HibernateException: collection is not associated with any session LAZY: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: <path>, could not initialize proxy - no Session Interestingly enough if I add a breakpoint to line 825 of StatefulPersistenceContext and step through the execution the issue does NOT happen. If I move the breakpoint to line 822 the issue still happens. I haven't debugged any further to know what is really going on, but it will always work if I have the breakpoint on line 825 and always fail if I don't. One way to work around this is to convert the one-to-many relationship to a many-to-many using the same table as the join table. This thread from 2009 has more details about the workaround. |