Skip to content

Commit 7e473b2

Browse files
committed
Updated to Hibernate 7 for tests
1 parent 9a301b1 commit 7e473b2

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
make
2626
sudo make install
2727
- run: psql -d pgvector_java_test -c "CREATE EXTENSION vector"
28-
# Hibernate 6.4 requires Java 11+
29-
- if: ${{ matrix.java == 8 }}
28+
# Hibernate 7 requires Java 17+
29+
- if: ${{ matrix.java < 17 }}
3030
run: |
3131
rm src/test/java/com/pgvector/HibernateTest.java
3232
- run: mvn -B -ntp test

pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,13 @@
9898
<dependency>
9999
<groupId>org.hibernate.orm</groupId>
100100
<artifactId>hibernate-vector</artifactId>
101-
<version>6.6.38.Final</version>
101+
<version>7.1.11.Final</version>
102+
<scope>test</scope>
103+
</dependency>
104+
<dependency>
105+
<groupId>org.hibernate.orm</groupId>
106+
<artifactId>hibernate-scan-jandex</artifactId>
107+
<version>7.1.11.Final</version>
102108
<scope>test</scope>
103109
</dependency>
104110
<dependency>

0 commit comments

Comments
 (0)