Tuesday, June 11, 2013

02 - Setting Up Hibernate

Go to below URL to download Hibernate JARs
  • Click on release bundles
  • Download latest bundle (4.2.2) zip file
Require jars for hibernate are
  1. Hibernate.jar
  2. lib/resource jars
  3. lib/JPA jars
  4. lib/optional/ehcache 
  5. lib/javaassist.jar
Create java project "HibernateProject"
Right click on Project -> properties -> java build path -> add lib-> user lib -> new -> hibernate

Add Jar-> add below jars
  • Hibernate.jar
  • lib/resource jars
  • lib/JPA jars
  • lib/bytecode/javaassist/javaassist.jar
  • lib/optional/ehcache
Select hibernate and click finish

Now we require database, in my case I am installing PostGre. We require PostGre Drivers For drivers google search "postgres jdbc driver" or else you can download from below URL.
(JDBC4 Postgresql Driver, Version 9.2-1002)

Installation of “PostGre” database:
Download from below URL:


No comments:

Post a Comment