Is there some easy way to force recreation/deletion of the current database on deployment of a web application (to Glassfish).
My web application uses a @Singleton @Startup bean to create and persist a test model each run. I keep getting models on top of each other on rerunning my web application.
Currently, to avoid multiple models in the database, I have to undeploy from Glassfish, stop the server, delete the database file, re-start the objectdb server, re-run the web app, which is tedious.
Is there a system property, persistence.xml property, or config file property I can use to set to force ObjectDB to always delete or empty the database file on startup ?