I am trying to develop a web application based on Hibernate . so my question is that where should i keep the cfg and hbm files ??
These will need to be in the classpath of your application. If you use the default configuration mechanism your config file will need to be in the default package of your application, and this file will define where all mapping files should live.