CODEXE

Generate hibernate.cfg.xml File

1. Open Hibernate perspsctive in Eclipse

hibernate eclipse perspective

2. Right the "Hibernate Configurations" navigator in the right side and select "Add Configuration..." action

3. Select the Project and Database conneciton. And set the directory of Configuration file

hibernate jboss configuration

4. The contents in the hibernate.cfg.xml file

hibernate.cfg.xml