Which datatype to use at JPA entity to store and retrieve date using java 8
I am using java 8 version in my application, I have confused to use java date classes like java.util.Date and java.time.LocalDate at entity and dto level.
Before java 8, we used to use either java.sql.Date or java.util.Date but in java 8 introduced LocalDate so can I use LocalDate for both entity and dto class.