-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: How does Hibernate deal with relative paths?
PostPosted: Mon Aug 29, 2005 9:54 am 
Regular
Regular

Joined: Mon Aug 29, 2005 9:46 am
Posts: 102
Hello,

First of all, I must say I previously looked for the answer for this noob question and found none.

In my hibernate.properties file, I have the following part:

Code:
hibernate.dialect org.hibernate.dialect.FirebirdDialect
hibernate.connection.driver_class org.firebirdsql.jdbc.FBDriver
hibernate.connection.url jdbc:firebirdsql:127.0.0.1/3050:./BD/auge.gdb
hibernate.connection.username sysdba
hibernate.connection.password password


And I am having difficulties setting a relative URL, like the one I'm trying to do above. If I put the whole path, it works. But the relative path doesn't.

What I wanted to tell with the path above was: access the directory BD which is in this same directory (the hibernate.properties dir). But it just doesn't work.

I feel I must put an relative path because I tried to change the path later (in tomcat, in my compiled application) and it didn't work. So what's the right way to refer to it?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 29, 2005 9:55 am 
Regular
Regular

Joined: Mon Aug 29, 2005 9:46 am
Posts: 102
Oh, I forgot to say. I'm using SUSE 9.3 and Hibernate 3. Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 29, 2005 10:59 am 
Regular
Regular

Joined: Mon Aug 29, 2005 9:46 am
Posts: 102
anyone?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 29, 2005 11:35 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
This is related to FireBird and where your app has been started, but not to Hibernate.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 29, 2005 12:33 pm 
Regular
Regular

Joined: Mon Aug 29, 2005 9:46 am
Posts: 102
i thought it was because I had to specify something else as my reference. But ok thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.