File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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 ?
It's not a secret anymore!