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 will extend and Envers collections implement, and which would declare the methods {{wasInitialized}}and {{initialize}}. * Modifiy Hibernate.isInitialized method to check this Interface * Modifiy Hibernate.initialize method to check this Interface |
|