How to persist JSR-310 types with Spring Data JPA?
问题 I am trying to use Spring Data JPA 1.8 with the Java 8 Date/Time API JSR-310. Everything seems to work, until I try to get all Vehicles between two LocalDateTimes. The number of Entities returned seems to only have a loose correlation with the number it should. Entity @Repository public interface VehicleRepository extends JpaRepository<Vehicle, Long> { List<Vehicle> findByDateTimeBetween(LocalDateTime begin, LocalDateTime end); } Repository @Entity @Table(name = \"VEHICLE\") public class