A database based on HSQLDB used java rmi or RabbitMQ for build driver jdbc. You can also define a schema database as POJO and use annotation for defining key and other.