Skip to content

Commit dceb578

Browse files
committed
Upgrade to Hibernate 6.2.2
1 parent 6710965 commit dceb578

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

platform/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies {
3939
api("org.skyscreamer:jsonassert:1.5.1")
4040

4141
api("com.h2database:h2:2.1.214")
42-
api("org.hibernate:hibernate-core:6.1.7.Final")
42+
api("org.hibernate:hibernate-core:6.2.2.Final")
4343
api("org.hibernate.validator:hibernate-validator:8.0.0.Final")
4444
api("org.mongodb:bson:4.9.1")
4545
api("org.mongodb:mongodb-driver-core:4.9.1")

spring-graphql/src/test/java/org/springframework/graphql/data/query/jpa/QueryByExampleDataFetcherJpaTests.java

+9-9
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class QueryByExampleDataFetcherJpaTests {
8181

8282
@Test
8383
void shouldFetchSingleItems() {
84-
Book book = new Book(42L, "Hitchhiker's Guide to the Galaxy", new Author(0L, "Douglas", "Adams"));
84+
Book book = new Book(42L, "Hitchhiker's Guide to the Galaxy", new Author(105L, "Douglas", "Adams"));
8585
repository.save(book);
8686

8787
Consumer<GraphQlSetup> tester = setup -> {
@@ -101,8 +101,8 @@ void shouldFetchSingleItems() {
101101

102102
@Test
103103
void shouldFetchMultipleItems() {
104-
Book book1 = new Book(42L, "Hitchhiker's Guide to the Galaxy", new Author(0L, "Douglas", "Adams"));
105-
Book book2 = new Book(53L, "Breaking Bad", new Author(0L, "", "Heisenberg"));
104+
Book book1 = new Book(42L, "Hitchhiker's Guide to the Galaxy", new Author(105L, "Douglas", "Adams"));
105+
Book book2 = new Book(53L, "Breaking Bad", new Author(106L, "Vince", "Gilligan"));
106106
repository.saveAll(Arrays.asList(book1, book2));
107107

108108
Consumer<GraphQlSetup> tester = graphQlSetup -> {
@@ -128,11 +128,11 @@ void shouldFetchMultipleItems() {
128128
void shouldFetchWindow() {
129129

130130
repository.saveAll(List.of(
131-
new Book(1L, "Nineteen Eighty-Four", new Author(0L, "George", "Orwell")),
132-
new Book(2L, "The Great Gatsby", new Author(0L, "F. Scott", "Fitzgerald")),
133-
new Book(3L, "Catch-22", new Author(0L, "Joseph", "Heller")),
134-
new Book(42L, "Hitchhiker's Guide to the Galaxy", new Author(0L, "Douglas", "Adams")),
135-
new Book(53L, "Breaking Bad", new Author(0L, "", "Heisenberg"))));
131+
new Book(1L, "Nineteen Eighty-Four", new Author(101L, "George", "Orwell")),
132+
new Book(2L, "The Great Gatsby", new Author(102L, "F. Scott", "Fitzgerald")),
133+
new Book(3L, "Catch-22", new Author(103L, "Joseph", "Heller")),
134+
new Book(42L, "Hitchhiker's Guide to the Galaxy", new Author(105L, "Douglas", "Adams")),
135+
new Book(53L, "Breaking Bad", new Author(106L, "Vince", "Gilligan"))));
136136

137137
Consumer<GraphQlSetup> tester = graphQlSetup -> {
138138

@@ -223,7 +223,7 @@ void shouldFetchSingleItemsWithDtoProjection() {
223223
@Test
224224
void shouldNestForSingleArgumentInputType() {
225225
Book book1 = new Book(42L, "Hitchhiker's Guide to the Galaxy", new Author(0L, "Douglas", "Adams"));
226-
Book book2 = new Book(53L, "Breaking Bad", new Author(0L, "", "Heisenberg"));
226+
Book book2 = new Book(53L, "Breaking Bad", new Author(1L, "", "Heisenberg"));
227227
repository.saveAll(Arrays.asList(book1, book2));
228228

229229
String queryName = "booksByCriteria";

0 commit comments

Comments
 (0)