Upgrade to Hibernate 6.2.2

This commit is contained in:
rstoyanchev
2023-05-15 15:18:06 +01:00
parent 67109652a2
commit dceb5781a0
2 changed files with 10 additions and 10 deletions

View File

@@ -39,7 +39,7 @@ dependencies {
api("org.skyscreamer:jsonassert:1.5.1")
api("com.h2database:h2:2.1.214")
api("org.hibernate:hibernate-core:6.1.7.Final")
api("org.hibernate:hibernate-core:6.2.2.Final")
api("org.hibernate.validator:hibernate-validator:8.0.0.Final")
api("org.mongodb:bson:4.9.1")
api("org.mongodb:mongodb-driver-core:4.9.1")

View File

@@ -81,7 +81,7 @@ class QueryByExampleDataFetcherJpaTests {
@Test
void shouldFetchSingleItems() {
Book book = new Book(42L, "Hitchhiker's Guide to the Galaxy", new Author(0L, "Douglas", "Adams"));
Book book = new Book(42L, "Hitchhiker's Guide to the Galaxy", new Author(105L, "Douglas", "Adams"));
repository.save(book);
Consumer<GraphQlSetup> tester = setup -> {
@@ -101,8 +101,8 @@ class QueryByExampleDataFetcherJpaTests {
@Test
void shouldFetchMultipleItems() {
Book book1 = new Book(42L, "Hitchhiker's Guide to the Galaxy", new Author(0L, "Douglas", "Adams"));
Book book2 = new Book(53L, "Breaking Bad", new Author(0L, "", "Heisenberg"));
Book book1 = new Book(42L, "Hitchhiker's Guide to the Galaxy", new Author(105L, "Douglas", "Adams"));
Book book2 = new Book(53L, "Breaking Bad", new Author(106L, "Vince", "Gilligan"));
repository.saveAll(Arrays.asList(book1, book2));
Consumer<GraphQlSetup> tester = graphQlSetup -> {
@@ -128,11 +128,11 @@ class QueryByExampleDataFetcherJpaTests {
void shouldFetchWindow() {
repository.saveAll(List.of(
new Book(1L, "Nineteen Eighty-Four", new Author(0L, "George", "Orwell")),
new Book(2L, "The Great Gatsby", new Author(0L, "F. Scott", "Fitzgerald")),
new Book(3L, "Catch-22", new Author(0L, "Joseph", "Heller")),
new Book(42L, "Hitchhiker's Guide to the Galaxy", new Author(0L, "Douglas", "Adams")),
new Book(53L, "Breaking Bad", new Author(0L, "", "Heisenberg"))));
new Book(1L, "Nineteen Eighty-Four", new Author(101L, "George", "Orwell")),
new Book(2L, "The Great Gatsby", new Author(102L, "F. Scott", "Fitzgerald")),
new Book(3L, "Catch-22", new Author(103L, "Joseph", "Heller")),
new Book(42L, "Hitchhiker's Guide to the Galaxy", new Author(105L, "Douglas", "Adams")),
new Book(53L, "Breaking Bad", new Author(106L, "Vince", "Gilligan"))));
Consumer<GraphQlSetup> tester = graphQlSetup -> {
@@ -223,7 +223,7 @@ class QueryByExampleDataFetcherJpaTests {
@Test
void shouldNestForSingleArgumentInputType() {
Book book1 = new Book(42L, "Hitchhiker's Guide to the Galaxy", new Author(0L, "Douglas", "Adams"));
Book book2 = new Book(53L, "Breaking Bad", new Author(0L, "", "Heisenberg"));
Book book2 = new Book(53L, "Breaking Bad", new Author(1L, "", "Heisenberg"));
repository.saveAll(Arrays.asList(book1, book2));
String queryName = "booksByCriteria";