LocalDateTime , ZonedDateTime and Timestamp
I have a SpringBoot app. using Spring Initializer, embedded Tomcat, Thymeleaf template engine, and package as an executable JAR file. I have a domain object with 2 properties (initDate, endDate). I want to create 2 converters to deal with mySQL DB @Convert(converter = LocalDateTimeAttributeConverter.class) private LocalDateTime initDate; @Convert(converter = ZonedDateTimeAttributeConverter.class) private ZonedDateTime endDate; the converter 1 (is OK) @Converter public class LocalDateTimeAttributeConverter implements AttributeConverter<LocalDateTime, Timestamp> { @Override public Timestamp