I created DAO data tier with JDBC and HSQLDB in standalone mode. I'm creating connection in this way:
Connection c = DriverManager.getConnection("jdbc:hsqldb:file:/databases/testdb", "sa", "");
Project is build with maven to jar and is used in two different projects. In first project I am inserting some records to db (all unit tests passed). But when I invoke second project where SELECT queries are executed, database is empty.
In other words: It looks like database is dropped after executing first project (I checked this with DatabaseManagerSwing
, tables are empty). When I run SELECT query in first project after inserting - records are available. What can be reason of this situation?
Thanks for every advice.