wood burning stoves
The moose likes Object Relational Mapping and the fly likes when to use hibernate.properties ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "when to use hibernate.properties ?" Watch "when to use hibernate.properties ?" New topic

when to use hibernate.properties ?

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

Hi all.
I'm using Hibernate with Tomcat server and MySQL server.
my web application is using hibernate.cfg.xml file, should I use hibernate.properties file ?
would you tell me when to use hibernate.properties file ?
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
The following is from Hibernate in Action:
Both the hibernate.properties and hibernate.cfg.xml files provide the same function: to configure Hibernate. Which file you choose to use depends on your xyntax preference. It's even possible to mix both options...
I agree. Here's the link: http://aspose.com/file-tools
subject: when to use hibernate.properties ?
It's not a secret anymore!