Can we rename hibernate.cfg.xml file name to somename.cfg.xml? if so how can we use it?
Yes. You'll need to tell Hibernate what and where the new configuration file is.
yes it is possible.you need to specify the configuration file name and the location where it is as a argument of configure() method
Ex:- Configuration cfg = new Configuration();
cfg = cfg.configure("/myconf.xml"); here i think that myconf.xml is configuration file name
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.