java - Hibernate Properties or configuration file to use -
for hibernate project recommended use hibernate.properties
file or hibernate.cfg.xml
file. use??
and please can u specify why use properties instead configuration , vice versa
which use best hibernate.properties file or hibernate.cfg.xml file
the hibernate.properties old way represent connection information, newest versions (2.0+), has been replaced xml-based configuration file, since more flexible , has more features.
however, there's thread explaining how combine them both, should have @ thread: how use hibernate.properties file instead of hibernate.cfg.xml.
you should have hibernate documentation http://docs.jboss.org/hibernate/core/3.3/reference/en/html/session-configuration.html, chapter 3.7. xml configuration file.
Comments
Post a Comment