fabrii (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNjIyMTYzNTNk...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15522?atlOrigin=eyJpIjoiNjIyMT...
) HHH-15522 (
https://hibernate.atlassian.net/browse/HHH-15522?atlOrigin=eyJpIjoiNjIyMT...
) Hibernate.isInitialized method not working for Envers Collections (
https://hibernate.atlassian.net/browse/HHH-15522?atlOrigin=eyJpIjoiNjIyMT...
)
Change By: fabrii (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
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}} and Envers
collections would extend, and which would only declare the method {{wasInitialized}}.
* Modifiy Hibernate.isInitialized method to check this Interface
* Modifiy Hibernate.initialize method to check this Interface
(
https://hibernate.atlassian.net/browse/HHH-15522#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15522#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100207- sha1:30c8888 )