mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-11 01:37:07 +00:00
#1775 - MySql 8 by default wants JDBC Date set and read with JVM Calendar (timezone)
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user