Package org.hibernate

Class Version


  • public class Version
    extends java.lang.Object
    Information about the Hibernate version.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getVersionString()
      Access to the Hibernate version.
      static void logVersion()
      Logs the Hibernate version (using getVersionString()) to the logging system.
      static void main​(java.lang.String[] args)
      Prints the Hibernate version (using getVersionString()) to SYSOUT.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getVersionString

        public static java.lang.String getVersionString()
        Access to the Hibernate version. IMPL NOTE : Real value is injected by the build.
        Returns:
        The Hibernate version
      • logVersion

        public static void logVersion()
        Logs the Hibernate version (using getVersionString()) to the logging system.
      • main

        public static void main​(java.lang.String[] args)
        Prints the Hibernate version (using getVersionString()) to SYSOUT. Defined as the main-class in the hibernate-core jar
        Parameters:
        args - n/a