You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
org.springframework.orm.ObjectOptimisticLockingFailureException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) #4019
If there is the jakarta.persistence.Convert annotation in the entity field, an exception will occur when using org.springframework.data.repository.CrudRepository#deleteById for deletion.
Using the H2 database is normal. However, using the MySQL database will cause this problem.
spring boot version 3.5.6, mysql version 8.0.37,sample code https://github.com/HN0109/jpa-test.git