Andreas Willinger (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-7940 (
https://hibernate.atlassian.net/browse/HHH-7940?atlOrigin=eyJpIjoiZGY5YWQ...
)
Re: NullPointerException with indexed Collections (
https://hibernate.atlassian.net/browse/HHH-7940?atlOrigin=eyJpIjoiZGY5YWQ...
)
Hi, I would like to pick up this issue again, as it appears as though the fix only works
if the property “org.hibernate.envers.revision_on_collection_change” is enabled, which in
our case it isn’t. This is mainly due to the fact that we want to avoid creating
unnecessary versions of EntityB whenever it is assigned to EntityA (through a mapping
entity).
Looking at the code, BaseEnversCollectionEventListener#onCollectionActionInversed is only
run if shouldGenerateRevision returns true, which, as noted above, only occurs if the
previously mentioned property is enabled.
Would it be possible to extend the fix to also work with the property disabled,
considering the position value is actually stored on the to-one side?
(
https://hibernate.atlassian.net/browse/HHH-7940#add-comment?atlOrigin=eyJ...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-7940#add-comment?atlOrigin=eyJ...
)
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#100216- sha1:a0b8fe5 )