Hello Hibernate Team, I was updating our SpringBoot version from 2.x to 3.x, and I am having trouble with starting our app. I create the tables by using liquibase in the past. When I start my application I see the below exception.
Suppressed: java.lang.UnsupportedOperationException: CteInsertStrategy can only be used with Dialects that support CTE that can take UPDATE or DELETE statements as well
at org.hibernate.query.sqm.mutation.internal.cte.CteInsertStrategy.<init>(CteInsertStrategy.java:123) ~[hibernate-core-6.1.7.Final.jar:6.1.7.Final]
at org.hibernate.query.sqm.mutation.internal.cte.CteInsertStrategy.<init>(CteInsertStrategy.java:107) ~[hibernate-core-6.1.7.Final.jar:6.1.7.Final]
at org.hibernate.dialect.PostgreSQLDialect.getFallbackSqmInsertStrategy(PostgreSQLDialect.java:828) ~[hibernate-core-6.1.7.Final.jar:6.1.7.Final]
I couldn’t be sure what is causing this issue. I would appreciate if you can help me solve it. You can find the configuration I use below.
- hibernate-envers: 6.1.7.Final
- hibernate-core: 6.1.7.Final
- hibernate-commons-annotations:6.0.6.Final
- spring-boot-starter-data-jpa:3.0.6
- postgresql jdbc driver:42.5.4
- postgres 14
|