I have a Spring/Hibernate application with H2 database and I have a few issues with configuring H2 to run in an embedded mode (in memory): 1. I want spring to start
Hibernate has a property called schemaUpdate. Set it on your SessionFactory so that the database is created on initialization.
schemaUpdate
SessionFactory
If you are using JPA, then there is a generateDdl property that is to be set on the JpaVendorAdapter
generateDdl
JpaVendorAdapter