Fix compilation errors

This commit is contained in:
Andrea Boriero 2021-08-24 08:47:53 +02:00 committed by Andrea Boriero
parent dbed6112c8
commit 718d1e4380
3 changed files with 3 additions and 3 deletions

View File

@ -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 );
} );

View File

@ -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(

View File

@ -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 );
} );
}