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.  [ 1 post ] 
Author Message
 Post subject: problem with relative path in hibernate.config.xml
PostPosted: Thu Sep 18, 2008 2:41 pm 
Newbie

Joined: Thu Sep 18, 2008 1:42 pm
Posts: 1
Hi,

I am using NHibernate 1.2.0 and an sdf-file to store my objects. To be able to copy the whole application without changing the configuration of NHibernate I decided to configure NHibernate this way:

<property name="connection.connection_string">Data Source=.\database.sdf</property>

It works fine until I use the part of the application that exports the database to an excel-file. Therefore I have to choose a folder and a file that the database should be exported to.

Until the application folder and the selected folder are equal everything is fine. When the excel export folder is set to another folder the export does not work because the application is not able to find the database.sdf. I think it is because now NHibernate looks for the config in the folder selected for the export.

Is anyone able to help me?


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

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.