Perhaps you should use a built-in database like H2 or HSQLDB . These are just simple libraries that you drop into your application, but they provide exactly the same JDBC interface.
You can use the full SQL database without any external dependencies. H2, my personal favorite, allows you to create both in memory and permanent databases, you can connect to it using a socket, it can set the web interface through the default port 8082, etc. On my developer's machine, I don’t even have a “normal” database, I always use H2.
source share