Envers uses custom classes (ListProxy, SetProxy, etc) instead of PersistentCollection, so it is ignored by the "Hibernate.isInitialized" method. The Envers collection classes do not currently have any method to check if it is initialized or not.
Proposed solution:
* Implement a {{LazyInitializable}} interface that {{PersistentCollection}} would extend and Envers collections would extend implement, and which would only declare the method methods {{wasInitialized}}and {{initialize}}. * Modifiy Hibernate.isInitialized method to check this Interface * Modifiy Hibernate.initialize method to check this Interface |
|