We are having some problems with hibernate and the auto-creation of the ddl in our hsqldb.
We use
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
Usually hibernate creates the tables in the schema on the db automatically when we change a mapped object, but sometimes it refuses to do that. In that case we have to delete the DB manually from filesystem to convince hibernate to recreate all the tables.
Does anybody know how hibernate decides when to recreate the datamodel on the db? I have read that it decides that when the SessionFactory is beeing created, but what are the exact conditions that convince hiberbate to update or create the tables?