I am coding a application using hibernate, and I want my application be able to detect when the database is void and only in that case it should recreate the database schema completely.
I was using hibernate.hbm2ddl.auto=update to achieve this but now I want a table may be populated at its recreation by using a import.sql file but I dont want to use hibernate.hbm2ddl.auto=create.
What is the best way to get it working this way using hibernate?