#1775 - MySql 8 by default wants JDBC Date set and read with JVM Calendar (timezone)

This commit is contained in:
rob bygrave committed 2019-07-25 21:25:38 +12:00
1 parent b04f887bc3
commit 5a39dcb39c
12 files changed
+66 -13

No files matched your search

@@ -5,6 +5,7 @@ import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Version;
import java.nio.file.Path;
import java.sql.Date;
import java.time.DayOfWeek;
import java.time.Duration;
import java.time.Instant;
@@ -45,6 +46,8 @@ public class SomeNewTypesBean {
@Column(name = "month_day")
MonthDay monthDay;
java.sql.Date sqlDate;
LocalDate localDate;
LocalDateTime localDateTime;
@@ -123,6 +126,14 @@ public class SomeNewTypesBean {
this.monthDay = monthDay;
}
public Date getSqlDate() {
return sqlDate;
}
public void setSqlDate(Date sqlDate) {
this.sqlDate = sqlDate;
}
public LocalDate getLocalDate() {
return localDate;
}