# Spring Boot 3.5.16 Hibernate 6.6.53.Final native query column -> java.sql.Date native query column -> java.time.OffsetDateTime native query column -> java.sql.Time read column 0 as java.sql.Date (old cast) -> 1965-08-01 save() of a new entity with a hand-assigned @GeneratedValue id -> throws org.springframework.orm.ObjectOptimisticLockingFailureException Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.ankurm.jpamig.domain.Book#4242] SQL: select b1_0.id,b1_0.isbn,b1_0.amount,b1_0.currency,b1_0.published_on,b1_0.subtitle,b1_0.title from book b1_0 where b1_0.id=? SQL: select b1_0.id,b1_0.isbn,b1_0.amount,b1_0.currency,b1_0.published_on,b1_0.subtitle,b1_0.title from book b1_0 where b1_0.id=?