hi all,
I am using Hibernate 3 / Spring / Tomcat / Mysql
In a spring file i have :
<entry key="hibernate.hbm2ddl.auto" value="create-drop" />
it works, when i start tomcat, my database is created, when i stop tomcat my database is dropped
In my database i have triggers defined in a hbm.xml file like this:
<hibernate-mapping>
<database-object>
<definition
class="com.util.db.UtCountSceneProcedureDefinition">
</definition>
</database-object>
</hibernate-mapping>
When i start tomcat they are created, when i stop they are dropped.
But, they are created 3 times and they are dropped 3 times!
In my xml file it's like : 5.7. Auxiliary Database Objects :
http://www.hibernate.org/hib_docs/refer ... pping.html
my java class extends AbstractAuxiliaryDatabaseObject.
Any idea?
Thanks a lot
Flo