-->
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: losing data with hsqldb
PostPosted: Fri Nov 12, 2004 8:37 am 
Beginner
Beginner

Joined: Sun May 02, 2004 8:04 am
Posts: 36
Hi,

I'm using latest Hibernate in my webapp framework and I've configured it to use HsqlDB. When I start my webapplication using Tomcat, I see the last contents of my database as well as this CONNECT USER sa PASSWORD appended to the end of the file:

INSERT INTO DOWNLOAD_INFO VALUES('42de6054fffef7de01001e1383730108','Test','Test@test.com','Test',NULL,0,false,1100016223090,'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705)')
INSERT INTO DOWNLOAD_INFO VALUES('42de6054fffef7de01001e6b7fbc0109','Test','Test@test.com','Test',NULL,0,false,1100021989307,'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705)')
/*C1*/CONNECT USER sa PASSWORD ""
SET AUTOCOMMIT FALSE

Now, data can be added to the database, but it can't retrieve it e.g.

INSERT INTO DOWNLOAD_INFO VALUES('42de6054fffef7de01001e1383730108','Test','Test@test.com','Test',NULL,0,false,1100016223090,'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705)')
INSERT INTO DOWNLOAD_INFO VALUES('42de6054fffef7de01001e6b7fbc0109','Test','Test@test.com','Test',NULL,0,false,1100021989307,'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705)')
/*C1*/CONNECT USER sa PASSWORD ""
SET AUTOCOMMIT FALSE
INSERT INTO DOWNLOAD_INFO VALUES('42de6054fffef7de01001e6b7fbc0109','Test2','Test2@test.com','Test2',NULL,0,false,1100021989307,'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705)')

will not let me query for the last DOWNLOAD_INFO Test2.

Furthermore when I shit down the webapp and restart, the Test2 and anything after the /*C1*/CONNECT statement is totally lost!!!

What can I do? I've tried manually editing the file after shutting down but that doesn't help.

Thanks, Jason


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.