Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

when to use hibernate.properties ?

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic