fabrii (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYWI3NzU5ODE2...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15522?atlOrigin=eyJpIjoiYWI3Nz...
) HHH-15522 (
https://hibernate.atlassian.net/browse/HHH-15522?atlOrigin=eyJpIjoiYWI3Nz...
) Hibernate.isInitialized method not working for Envers Collections (
https://hibernate.atlassian.net/browse/HHH-15522?atlOrigin=eyJpIjoiYWI3Nz...
)
Issue Type: Bug Affects Versions: 6.1.3 Assignee: Chris Cranford (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Components: hibernate-core, hibernate-envers Created: 17/Sep/2022 09:29 AM Environment:
Java 11.0.13. Windows. h2 database. Priority: Major Reporter: fabrii (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Envers uses customs 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
(
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 )