I have a schema that includes two polymorphic entity classes using the join strategy. When I call EntityManager.refresh on one of the subclasses a lazy collection in its superclass fails to work. Specifically, when I try to get a record from that collection, I get this exception: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.hibernate.bugs.Company.people: could not initialize proxy - no Session The failure happens whether or not I include CascadeType.REFRESH on the collection. Here is a picture of the schema:  Here is the essential source code:
Here is a project that reproduces the problem: https://github.com/robscala/Hibernate_lazy_load_collection_fails |