posted 13 years ago
Hello,
1) Do i have to write hibernate.cfg.xml?? - This is basically the same as hibernate.properties in xml format. If both files are present in classpath, xml will take precedence. If you want to take advantage of xml syntax, you can use this one.
2) If yes, what should be written in it?? Basically the same stuff as in hibernate.properties
3) How can i map the .properties file , So that connection can be made...?? When you create a SessionFactory and open a session, a connection will be made using the parameters provided in .properties files.
Hope this helps,
Roy