I want to store Date without time into my database. So, I choose to use LocalDate type.
LocalDate
As mentioned in this article, I use a JPA converter to convert
Hibernate 5 supports java 8, so you can add this to your pom.xml:
org.hibernate hibernate-java8 5.1.0.Final
This gives you mapping for LocalDate and LocalDateTime out of box.
LocalDateTime