This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes when to use ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "when to use ?" Watch "when to use ?" New topic

when to use ?

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 file ?
would you tell me when to use file ?
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
The following is from Hibernate in Action:
Both the 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:
subject: when to use ?
jQuery in Action, 3rd edition