Skip to content

Commit 2e8c7c1

Browse files
committed
Add build profile for Hibernate 7.
Not yet executed in CI automatically as we expect 7.0 to contain changes that are likely to break our builds. Fixes GH-3361.
1 parent 6c16447 commit 2e8c7c1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
<id>hibernate-70-snapshots</id>
9999
<properties>
100100
<hibernate>${hibernate-70-snapshots}</hibernate>
101+
<jakarta-persistence-api>3.2.0-M2</jakarta-persistence-api>
101102
</properties>
102103
<repositories>
103104
<repository>

spring-data-jpa/src/test/java/org/springframework/data/jpa/convert/QueryByExamplePredicateBuilderUnitTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ void setUp() {
126126

127127
doReturn(expressionMock).when(cb).literal(any(Boolean.class));
128128
doReturn(truePredicate).when(cb).isTrue(eq(expressionMock));
129-
doReturn(andPredicate).when(cb).and(ArgumentMatchers.any());
130-
doReturn(orPredicate).when(cb).or(ArgumentMatchers.any());
129+
doReturn(andPredicate).when(cb).and(ArgumentMatchers.<Predicate[]> any());
130+
doReturn(orPredicate).when(cb).or(ArgumentMatchers.<Predicate[]> any());
131131
}
132132

133133
@Test // DATAJPA-218

0 commit comments

Comments
 (0)