My web application, written in Spring Web-MVC uses JDBC to work with data. I want to make my app to automatically create tables (and schema), when end-user runs it for the first time (but loads created schema, when it runs it again). I'm using HSQLDB as database engine.
Any ideas, how to do it? (I don't want to write inside app special methods to check, does the table exist, and if it is not, to create them. Does any more useful method doing it exist?)
P.S. I'm thinking about using Hibernate instead of simple connection method. Is there any way to solve it using Hibernate?