aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "when to use hibernate.properties ?" Watch "when to use hibernate.properties ?" New topic
Author

when to use hibernate.properties ?

Hussein Baghdadi
clojure forum advocate
Bartender

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 ?
thanks.
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 ?