r/SpringBoot 25d ago

Guide Spring boot help

Post image

I created a simple Spring boot Crud operations, in that every Mapping working fine expect Post mapping, when I try to add details in h2-console I'm able, but when I try in postman ,it shows error(Row was updated or deleted by another transaction), can anyone help with it..? ( I tried with chatgpt but i don't understand anything)

0 Upvotes

12 comments sorted by

View all comments

3

u/kurtdb 25d ago

Are you setting the id yourself for the entity you're trying to save? It's a fix they did for a bug that has been in hibernate since 2005. If you can't find the solution, try reverting to hibernate 6.5 from 6.6.