Quantcast
Channel: Coffeewithcode.com
Viewing all articles
Browse latest Browse all 40

How to find hibernate version?

$
0
0

How to find hibernate version?

1. By printing out the it from the org.hibernate.Version class.

Like below:

  1. public class Driver {
  2. /**
  3. * @param args
  4. */
  5. public static void main(String[] args) {
  6. System.out.println(org.hibernate.Version.getVersionString());
  7. }
  8. }

2. By the hibernate jar itself.

  • Double click on hibernate.jar 
  • Double click on META-INF
  • Double click on MANIFEST.MF

Opened file will show the information about the hibernate jar.

Here is the implementation version.

It will looks like below:

  1. Manifest-Version: 1.0
  2. Archiver-Version: Plexus Archiver
  3. Created-By: Apache Maven
  4. Built-By: gbadner
  5. Build-Jdk: 1.5.0_16
  6. Specification-Title: Hibernate Distribution
  7. Specification-Version: 3.6.7.Final
  8. Specification-Vendor: Hibernate.org
  9. Implementation-Title: Hibernate Distribution
  10. Implementation-Version: 3.6.7.Final
  11. Implementation-Vendor-Id: org.hibernate
  12. Implementation-Vendor: Hibernate.org
  13. Implementation-URL: http://hibernate.org

Your Suggestions Are Always Welcomed.


Viewing all articles
Browse latest Browse all 40

Trending Articles