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

2. Next fill the appropriate settings; for example-

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.

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





























