4
Pins

Configuration of Hibernate, MySQL & Eclipse «

posted by adminadmin 838 days, 22 hours, 22 minutes ago
Friday, January 06, 2012 2:09:16 PM GMT

This configuration will be based on:

Eclipse 3.2 + Web Tools Platform
Hibernate Core 3.2.4 .SP1 + Hibernate Tools-3.2.0.beta9a
MySQL 4.1 + MySQL Gui Tools 5.0-r12+ MySQL Connector (driver)
Apache Tomcat 5.5

First of all, you have to create a new project of type Dynamic Web Project with the Eclipse environment; we are going to call it “test“. In the field “Target Runtime” we must indicate which server we are gonna use. In our case, we will use the Tomcat Apache 5.5. With the created project and a good database in the MySQL, now, we must import all the Hibernate libs into /WebContent/WEB-INF/lib folder. There is another way: you must put all the Hibernate libs into /tomcat/common/lib folder. This last one it’s better if you have to export the project in a “*.war” file.

We are ready to establish connection and mapping between the database and our project.

category: ORM | clicked: 0 | | source: casteyo.wordpress.com | show counter code
tags: Configuration, Eclipse, Hibernate, MySql


To post comments using your Facebook,Twitter, Gmail etc credentials in the Discus comments section. Or use your Javapins credentials at the end of the page.
To post your comment as a Javapins user please login or signup to Javapins database.