h2 « Tomcat « JPA Q&A





1. how can I provide a relative path for H2 database file, using hibernate under Tomcat?    stackoverflow.com

Greetings, I have a setup which must be fairly common: I have an H2 db, with a db file. I'm using the db in standalone mode. Hibernate provides access to db, and ...

2. h2 database reset when i restart tomcat    forum.hibernate.org

Probably thats the problem: hbm2ddl.auto All the examples in the internet bring this proporty set. (sometimes this property can be located in your hibernate xml config file) The value for this property should be always "validate" Other values re-create the database always you restart the container, or reset all the records. The correct value to keep the data is validate. Leave ...