sidebar hamburger menu

Hibernate

TuxCare's Endless Lifecycle Support (ELS) for Hibernate provides security patches and selected bug fixes that are integral to the stable operation of applications running on Hibernate.

Supported Versions

  • Hibernate Commons Annotations 5.1.2.Final
  • Hibernate ORM 4.3.11.Final, 5.1.2.Final, 5.4.3.Final, 5.4.30.Final, 5.4.31.Final, 5.4.32.Final, 5.4.33.Final, 5.5.6.Final, 5.5.9.Final, 5.6.15.Final, 6.2.5.Final
  • Hibernate Search 5.11.10.Final
  • Hibernate Validator 5.4.3.Final, 6.2.5.Final

Installation

Prerequisites

  • Maven or Gradle build tool installed
  • Nexus repository access credentials (username and password) — contact sales@tuxcare.com
  • To browse available artifacts, visit TuxCare Nexus and click Sign in in the top right corner. You may need to refresh the page after logging in.

Optionally, ELS can be consumed through your own repository manager instead of connecting to TuxCare directly. You can find the corresponding instructions here.

  1. Configure credentials

    For Maven, you may choose any valid <id> value instead of tuxcare-registry, but the same value must be used in both settings.xml and pom.xml.

    <?xml version="1.0" encoding="UTF-8"?>
    <settings xmlns="http://maven.apache.org/SETTINGS/1.1.0">
      <servers>
        <server>
          <id>tuxcare-registry</id>
          <username>USERNAME</username>
          <password>PASSWORD</password>
        </server>
      </servers>
    </settings>

    Replace USERNAME and PASSWORD with your TuxCare credentials (see Prerequisites above).

  2. Add the TuxCare repository

    Add the TuxCare Hibernate repository and plugins to your build configuration.

    <repositories>
      <repository>
        <id>tuxcare-registry</id>
        <url>https://nexus.repo.tuxcare.com/repository/els_java/</url>
      </repository>
    </repositories>
    • To fully switch from the official Hibernate repository, replace it with the TuxCare repository.
    • To keep both, add TuxCare after the official one.

    Example Maven and Gradle projects are available on GitHub. Ensure the required environment variables are set.

  3. Update dependencies

    Replace Hibernate dependencies with TuxCare-maintained versions. You can find artifact versions on Nexus — sign in with your TuxCare credentials.

    Choose an extension:
    <dependencies>
        <dependency>
          <groupId>org.hibernate</groupId>
          <artifactId>hibernate-core</artifactId>
          <version>5.6.15.Final-tuxcare.1</version>
        </dependency>
    </dependencies>
  4. Verify and build

    Verify the setup:

    mvn dependency:tree -Dverbose

    Build the project:

    mvn clean install

    The build tool should be able to identify and resolve dependencies from the TuxCare ELS for Hibernate repository.

What's Next?