My web application written in Spring Web-MVC uses JDBC to work with data. I want my application to automatically create tables (and a schema) when the end user starts it the first time (but loads the created schema when it starts it again). I use HSQLDB as a database engine.
Any ideas how to do this? (I don’t want to write inside the application’s special methods to check if the table exists, and if not, create them. Is there any more useful method?)
PS I'm thinking of using Hibernate instead of a simple connection method. Is there any way to solve this with Hibernate?
Ilnur source
share