File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes HSQL - data not persisting in table? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "HSQL - data not persisting in table?" Watch "HSQL - data not persisting in table?" New topic

HSQL - data not persisting in table?

Vladislav Simovic
Ranch Hand

Joined: Feb 03, 2011
Posts: 37
I am total newbie with HSQL, so expect a lot of questions in the next couple of days. Any and all help is welcome. Here is my problem - I have written this piece of code:

When i execute this code, i get value 5 printed and thats ok. But when i execute it second time, it should print 2 values 5. But instead it prints just one values 5. Its like previous insert wasnt executed permanently. I mean if i execute ten times this code, shouldnt the database hold ten rows with value 5? What am i misssing?
I agree. Here's the link:
subject: HSQL - data not persisting in table?
It's not a secret anymore!