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

@Sequence Annotation generates a new Id on update #2003

Open
lbueker opened this issue Feb 26, 2025 · 0 comments
Open

@Sequence Annotation generates a new Id on update #2003

lbueker opened this issue Feb 26, 2025 · 0 comments
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@lbueker
Copy link

lbueker commented Feb 26, 2025

Version: spring-data-jdbc:3.5.0-M1
Currently when using the @Sequence annotation in an entity, it seems to generate a new value on each save.

This results in an error, when trying to update an entity complaining that the newly generated id is not available in the database.

I think there should be a check, so it only generates a new value, when there is none set.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 26, 2025
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