-
Notifications
You must be signed in to change notification settings - Fork 100
Description
Somewhere between 2.1.17 and 2.5.6, the behaviour of this function has changed. I can work on a minimal repro case if required, but before I go to that effort I just want to check whether anybody is aware of this (I couldn't find it in the release notes)? Also it might be a different project that the bug should be filed against?
Please let me know next steps?
Thanks.
Scenario:
Entity E_1 and E_2 both annotated with @Audited
Create entity E_1, at time T_1 at revision 1.
Create another entity E_2, at time T_2 at revision 2.
Postgres DB
Steps:
Call org.springframework.data.envers.repository.support.EnversRevisionRepositoryImpl#findRevision with arguments
ID =
revisionNumber = 2
Result at spring-data-envers 2.1.17:
Result E_1 at revision 1
Result at spring-data-envers 2.5.6:
Optional.empty()
Conclusion:
It seems like the behaviour changed from returning the most recent version at that revision or earlier, to returning only the specific revision requested?