본문 바로가기

Back-End/JPA

ObjectOptimisticLockingFailureException

11/1/2019 5:47:27 PMorg.springframework.orm.ObjectOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
11/1/2019 5:47:27 PM	at org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:338)
11/1/2019 5:47:27 PM	at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:253)
11/1/2019 5:47:27 PM	at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:536)