Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems EnversRevisionRepositoryImpl.findRevision(ID id, N revisionNumber) behavior has changed: entity must now exist at revisionNumber, not only in a previous revision #248

Open
cguillot opened this issue Jul 27, 2020 · 0 comments
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@cguillot
Copy link

Hello,

I am upgrading to spring-data envers 2.3.2 (from 2.2.4) and i am facing an issue due to changes in the implementation of EnversRevisionRepositoryImpl.findRevision.

Quick scenario:
Create an entity type A, save it. Entity A.1 created at revision 1.
Create an entity type B, save it. Entity B.1 created at revision 2.
Now envers higher revision is 2.

Then, we want to retrieve entity A.1 at last known revision (2):

Result in 2.3.2
findRevision(A.1, 2) return nothing.

Result in 2.2.4
findRevision(A.1, 2) return A.1

My Expectations
I would expect the entity A.1 at revision 1 to be also the revision 2.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

2 participants