Persist Java 8 LocalTime in JPA
<p>I have a Java 8 LocalTime in one of my entity . </p>

<pre><code>private final LocalTime departureTime;
</code></pre>

<p>It is a Spring Boot 1.3.6 application with Spring Data Rest . I use Jsr310JpaConverters to support Java 8 time module for JPA . </p>

<p>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 ?</p>

<p>Thanks in Advance</p>