Hibernate {fullVersion} requires the following dependencies (among others):
Version |
|
---|---|
Java Runtime |
{javaCompatibleVersions} |
{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>
Hibernate {fullVersion} is compatible with the following database versions, provided you use the corresponding dialects: