db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Poels <geert.po...@voice.zetes.com>
Subject Use relative path with embedded database
Date Tue, 30 Jan 2007 15:07:53 GMT
Hello,

 

I'm developing a Swing application using Derby in embedded mode through
Hibernate.

Currently, I'm using an absolute path to access that db.

Is it possible to use a relative path in the connection url ?

 

            <property name="hibernate.connection.driver_class"

                        value="org.apache.derby.jdbc.EmbeddedDriver" />

            <property name="hibernate.connection.url"

                        value="jdbc:derby:/database/DB_NAME;create=true" />

Regards,

 

Geert


Mime
View raw message