fabrii (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYTk2NzdmOTRm...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15522?atlOrigin=eyJpIjoiYTk2Nz...
) HHH-15522 (
https://hibernate.atlassian.net/browse/HHH-15522?atlOrigin=eyJpIjoiYTk2Nz...
) Hibernate.isInitialized method not working for Envers Collections (
https://hibernate.atlassian.net/browse/HHH-15522?atlOrigin=eyJpIjoiYTk2Nz...
)
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}} will extend
and Envers collections implement, and which would declare the methods
{{wasInitialized}}and {{ initialize forceInitialization }}.
* 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 )