spring-boothibernatespring-data-jpaojdbc

HHH000511: The 12.2.0 version for [org.hibernate.dialect.OracleDialect] is no longer supported


When I run my SpringBoot (3.2.2) project it works all fine. I just got in terminal the following warning:

HHH000511: The 12.2.0 version for [org.hibernate.dialect.OracleDialect] is no longer supported, hence certain features may not work properly. The minimum supported version is 19.0.0.

How can I update it? Is it just a depencency to update (version) in POM.xml? Thank you

My depencency

<dependency>
            <!-- Oracle - OJDBC -->
            <groupId>com.oracle.database.jdbc</groupId>
            <artifactId>ojdbc11</artifactId>
            <scope>runtime</scope>
        </dependency>

and here my application.properties

# JPA Settings
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.OracleDialect

My Hibernate Core version is: 6.4.1


Solution

  • It seems like you need to update the oracle database to at least version 19! but this solution is not feasible for me. Therefore, I resolved this issue by downgrading the hibernate version to 6.2.

    <properties>
        <hibernate.version>6.2.21.Final</hibernate.version>
    </properties>