permaculture playing cards*
The moose likes XML and Related Technologies and the fly likes XML Relative Path (hibernate configuration problem) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML Relative Path (hibernate configuration problem)" Watch "XML Relative Path (hibernate configuration problem)" New topic

XML Relative Path (hibernate configuration problem)

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590

I am going to do this in Java SWING. The application is going to be portable. So the path can't be dead set.
Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

There's no "path" in that entry. The last part of the database driver URL is the DSN (data source name), which you configure into ODBC before running your code. I would suggest you get that configuration done and tested in a small application without Hibernate.
I agree. Here's the link:
subject: XML Relative Path (hibernate configuration problem)
Similar Threads
"">create - to generate DB Tables
Really strange error: Could not initialize class net.sf.hibernate.impl.SessionFactoryImpl
SQL Server 2005 Hibernate in Netbeans problem
[Newbie Issue] hibernate.cfg.xml and hbm.xmls are not packaged by Maven?