Persist Java 8 LocalTime in JPA
I have a Java 8 LocalTime in one of my entity . private final LocalTime departureTime; It is a Spring Boot 1.3.6 application with Spring Data Rest . I use Jsr310JpaConverters to support Java 8 time module for JPA . When I save the LocalTime variable to MySql , date at which the LocalTime variable is saved is also being persisted to the database . Suppose if I save 18:00:00 on 1st Jan 2016 , it is persisted as 2016-01-01 18:00:00 . I want to save only the time . ie 18:00:00 . Any solutions ? Thanks in Advance Davijr This exemple runs with: java 8, JPA 2.1, Hibernate 4.3.5. You can implement a