# Spring Boot 4.2.0 Hibernate 7.4.15.Final native query column -> java.time.LocalDate native query column -> java.time.OffsetDateTime native query column -> java.time.LocalTime read column 0 as java.sql.Date (old cast) -> throws java.lang.ClassCastException class java.time.LocalDate cannot be cast to class java.sql.Date (java.time.LocalDate is in module java.base of loader 'bootstrap'; java.sql.Date is in module java.sql of loader 'platform') save() of a new entity with a hand-assigned @GeneratedValue id -> throws org.springframework.orm.ObjectOptimisticLockingFailureException Row was already updated or deleted by another transaction for entity [com.ankurm.jpamig.domain.Book with id '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=?