Database application in Java with JDBC, sql is mapped to Java objects. Using HSQL