How to find hibernate version?
1. By printing out the it from the org.hibernate.Version class.
Like below:
- public class Driver {
- /**
- * @param args
- */
- public static void main(String[] args) {
- System.out.println(org.hibernate.Version.getVersionString());
- }
- }
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:
- Manifest-Version: 1.0
- Archiver-Version: Plexus Archiver
- Created-By: Apache Maven
- Built-By: gbadner
- Build-Jdk: 1.5.0_16
- Specification-Title: Hibernate Distribution
- Specification-Version: 3.6.7.Final
- Specification-Vendor: Hibernate.org
- Implementation-Title: Hibernate Distribution
- Implementation-Version: 3.6.7.Final
- Implementation-Vendor-Id: org.hibernate
- Implementation-Vendor: Hibernate.org
- Implementation-URL: http://hibernate.org
Your Suggestions Are Always Welcomed.