From 718d1e4380802759ac295ad680fc231eb19ec5fc Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Tue, 24 Aug 2021 08:47:53 +0200 Subject: [PATCH] Fix compilation errors --- .../test/java/org/hibernate/orm/test/query/QueryApiTests.java | 2 +- .../test/java/org/hibernate/orm/test/query/QueryHintTest.java | 2 +- .../test/java/org/hibernate/orm/test/query/hql/GroupByTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/query/QueryApiTests.java b/hibernate-core/src/test/java/org/hibernate/orm/test/query/QueryApiTests.java index 1348e0496d..a78fc2003e 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/query/QueryApiTests.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/query/QueryApiTests.java @@ -75,7 +75,7 @@ public class QueryApiTests { 1, new Contact.Name( "John", "Jingleheimer-Schmidt"), Contact.Gender.MALE, - LocalDate.EPOCH + LocalDate.of(1970, 1, 1) ); session.persist( contact ); } ); diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/query/QueryHintTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/query/QueryHintTest.java index 7bcf4a3f34..987642660d 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/query/QueryHintTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/query/QueryHintTest.java @@ -70,7 +70,7 @@ public class QueryHintTest { 1, new Contact.Name( "John", "Jingleheimer-Schmidt"), Contact.Gender.MALE, - LocalDate.EPOCH + LocalDate.of(1970, 1, 1) ); contact.setPhoneNumbers( Collections.singletonList( diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/GroupByTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/GroupByTest.java index efe69a7e62..350e7fece7 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/GroupByTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/GroupByTest.java @@ -114,7 +114,7 @@ public class GroupByTest { @BeforeEach public void prepareData(SessionFactoryScope scope) { scope.inTransaction( (em) -> { - Contact entity1 = new Contact( 123, new Contact.Name( "Johnny", "Lawrence" ), Contact.Gender.MALE, LocalDate.EPOCH ); + Contact entity1 = new Contact( 123, new Contact.Name( "Johnny", "Lawrence" ), Contact.Gender.MALE, LocalDate.of(1970, 1, 1) ); em.persist( entity1 ); } ); }