Skip to main content

Posts

Showing posts from August, 2011

Hibernate 3 with Eclipse helios (Eclipse 3.6)

There are many blogs and tutorials on this topic. However I faced many problems while integrating Hibernate 3.0 with Eclipse Helios. Most of the problems were related to the version mismatch among the components used to create a Hibernate project on Eclipse Helios. Software Requirements: 1.        Eclipse Helios (This tutorial could work with other versions of Eclipse but it is specially designed for Helios version.) 2.        hibernate-distribution-3.6.5.Final-dist bundle (zip file). Download the bundle from http://www.hibernate.org/downloads . It will be around 59.2 MB jar file. 3.        MySql connector for Eclipse “mysql-connector-java-5.0.8 (zip)”. 4.        slf4j-1.6.1 bundle (zip form) 5.        apache-log4j-1.2.16 bundle(zip form) 6.        commons-logging-1.1.1.jar Pre-Requisites: 1.        In MySql create a database named “db2”. 2.        Under database db2 create a table named “employee” with following attributes. CREATE TABLE employee (                 id VARCHAR(10),