Generating a Hibernate Mapping file with Hibernate Synchronizer in Eclipse

This is one way to generate an Hibernate Mapping file using the Hibernate Synchronizer plugin in Eclipse.

I assume you will want to put your mapping files in your WEB-INF/classes directory, so it will be picked up in the classpath.

1. Right Click the “classes” directory and choose New->Other->Hibernate Mapping File

Hibernate Mapping Screenshot

2. Next fill the appropriate settings; for example-

Hibernate Mapping Screenshot

And hit “Refresh”. If the information you entered is correct and the database connection succeeds, you will be presented with the option to choose which table you would like to generate a Hibernate mapping.

Hibernate Mapping Screenshot

Choose your package and the .hbm.xml file will be generated in your WEB-INF/classes.

Software Development Tutorial Screencasts?

Java Load Testing and Performance Tuning with The Grinder and JProbe

Custom Single Sign-On Using BouncyCastle with Microsoft Self Signed Certificate

Generating Dynamic Flash Charts

Symbiotic Relationship of Open Source and Offshore Development

Using Hibernate Synchronizer 3 with Spring and Hibernate 3

Using Hibernate Synchronizer 3.1.1 with Spring, Hibernate 2 and < JRE 1.5

« Previous Page

ServiceCycle is a registered trademark of Supergloo, inc..