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.