Saturday, March 24, 2012

Hibernate Tutorial For Beginners

Open eclipse framework,
File-->New-->Other-->Java Project-->Give name of the project-->Finish

Go to http://www.hibernate.org/downloads download the release bundles save it.  
Right click the created project-->propertires-->java Bulid path-->Add Library-->user library-->Next-->user libraries-->New-->User Library Name-->Give name HibernateLib-->Ok

Select Created library that is HibernateLib-->Add jars.
1) hibernate3.jar
2) All jars in requireed folder.
3) hibernate-jpa-2.0 from lib/jpa folder
4) javassist-3.12.0.GA from lib/bytecode/javaassist folder
5) one extra jar which you can add externally ,drivers i.e mysql connector.
total 9 jars are ther have a look.

Right click the created project-->propertires-->java Bulid path-->Add Library-->user library-->Next-->choose the create HibernateLib-->select it-->finish.

You are all set to go.
Your Hibernate enviornment is all set

Next tutorial we will have our first hibernate program.
(next tutorial if you want,so give your feedback...thank you)















4 comments:

  1. please post more article on this..

    ReplyDelete
  2. hi!!
    i want to do hibernate technology demo for final year of BE.. plz post next tutorial..

    ReplyDelete
  3. Its good... Please let us know for oracle DB.

    ReplyDelete
  4. hi all please visit my codemyday.com for more tutorials.

    ReplyDelete

java-8-streams-map-examples

package com.mkyong.java8; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Arrays; import java.util.List; im...