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? |