I am confused if I can use Instant, LocalDate, LocalDateTime etc. as a data type for my date variable in entity class? Is it possible or should I use Date in Entity classes and when I do some logic I should convert the Date to some of the types mentioned above?
Thank you!