fabrii (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMDA1NzM5ZWY4...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15522?atlOrigin=eyJpIjoiMDA1Nz...
) HHH-15522 (
https://hibernate.atlassian.net/browse/HHH-15522?atlOrigin=eyJpIjoiMDA1Nz...
) Hibernate.isInitialized method not working for Envers Collections (
https://hibernate.atlassian.net/browse/HHH-15522?atlOrigin=eyJpIjoiMDA1Nz...
)
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}} 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
(
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 )