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: writing a database file
PostPosted: Tue May 05, 2009 5:51 pm 
Newbie

Joined: Tue May 05, 2009 5:33 pm
Posts: 2
I have a java program, using Hibernate in standalone mode. It reads custom data files, processes these, and makes results to be written out with Hibernate. The idea is to write to db files on the disk. My persistence.xml includes the line

<property name='hibernate.connection.url' value='jdbc:hsqldb:file:/tmp/m5' />

I run the program. It makes files /tmp/m5.{log, properties}
The m5.properties file includes the comment "HSQL ... 1.8.0.10".

I rerun the program. It appends to m5.log, and now makes m5.script.

Can anyone answer any of these [probably simple?] questions -

1. I want to write to a database file on the disk, so that this file exists after my program is done. Is the m5.script my database?

2. Why is m5.script only made on the second run?


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.