Sudeep,
There are Eclipse plug-ins from JBoss that might make development easier. The below steps will help you
In the Eclipse workbench, pull down the Help menu, choose Install New Software....
Click Add, in Name: type "Hibernate" then entre the update site URL:
http://download.jboss.org/jbosstools/updates/stable/galileo/
Click the triangle next to Web and
Java EE Development, then click the Hibernate Tools box.
Click Next and proceed as for any other Eclipse plug-in.
This adds a Hibernate item to some menus like Window -> Show View -> Hibernate with options to generate configuration and mapping files, etc. and Window -> Preferences -> HQL Editor.
So, you can get the Hibernate tools to generate hibernate.cfg.xml as well as any class-mapping file.