Hibernate 4 Example (XML Mapping Style)


This is a quick guide to create hibernate project using hibernate xml mapping, in this example we use following tools

– Eclispe Kepler
– maven
– h2 database
– hibernate tools (eclipse plugin from jboss.org)

Install Hibernate Tools
first we need to install hibernate tools for eclipse using update site.

http://download.jboss.org/jbosstools/updates/stable/kepler/

in eclispe goto menu Help->Install new Software…
insert http://download.jboss.org/jbosstools/updates/stable/kepler/ to work with
and filter hibernate
then select Hibernate Tools and JBoss Maven Hibernate Configurator which showed in following image.

Hibernate Tools

click next to proceed. Once the installation is finished, eclispe will prompt to restart.
Continue reading “Hibernate 4 Example (XML Mapping Style)”

Hibernate 4 Example (XML Mapping Style)