Skip to content

Latest commit

 

History

History
76 lines (65 loc) · 2.15 KB

File metadata and controls

76 lines (65 loc) · 2.15 KB

Compatibility

Dependencies

Hibernate {fullVersion} requires the following dependencies (among others):

Table 1. Compatible versions of dependencies

Version

Java Runtime

{javaCompatibleVersions}

Jakarta Persistence

{jakartaJpaVersion}

JDBC (bundled with the Java Runtime)

{jdbcVersion}

Tip

Find more information for all versions of Hibernate on our compatibility matrix.

The compatibility policy may also be of interest.

If you get Hibernate from Maven Central, it is recommended to import Hibernate Platform as part of your dependency management to keep all its artifact versions aligned.

Gradle
dependencies {
  implementation platform "org.hibernate.orm:hibernate-platform:{fullVersion}"

  // use the versions from the platform
  implementation "org.hibernate.orm:hibernate-core"
  implementation "jakarta.transaction:jakarta.transaction-api"
}
Maven
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.hibernate.orm</groupId>
            <artifactId>hibernate-platform</artifactId>
            <version>{fullVersion}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>
<!-- use the versions from the platform -->
<dependencies>
    <dependency>
        <groupId>org.hibernate.orm</groupId>
        <artifactId>hibernate-core</artifactId>
    </dependency>
    <dependency>
        <groupId>jakarta.transaction</groupId>
        <artifactId>jakarta.transaction-api</artifactId>
    </dependency>
</dependencies>

Database

Hibernate {fullVersion} is compatible with the following database versions, provided you use the corresponding dialects: