In the hibernate configuration, there is this property:
<property name="hibernate.hbm2ddl.auto">update</property>
in the actual mapping configuration, we have a class definition:
<class name="user.ThreeStrings">
<id name="A"/>
<property name="B"/>
<property name="C"/>
</class>
where ThreeStrings is just a custom Java class.
What I notice is in the database, a temporary table "ThreeStrings" always gets created (if not exist) when the Hiberate sessionFactory instanticate. While all its purpose is to help Hibernate validate this class.
My question is, is there anyway to force Hiberanate not to validate or create this table in database?
If all the purpose if the temporary table is to validate DDL, is there a smarter way than to create a real table in database?
Thanks
|