We have extended DefaultLoadEventListener to setup some transient fields before an entity is loaded. This works fine, if the entity is loaded directly, but fails if the Collection containing the entity is loaded. The loading of the collection fires a load event, which tries to load the individual entities in the collection, but DefaultLoadEventListener.load return an uninitialised object. Is there a way to detect if the object is uninitialised? Hibernate.isInitialized returns true for the uninitialised object. |