Hibernate version:3.2.1
Name and version of the database you are using:MySQL 5
i have two hibernate.map in two differenet mapping files. these two definitinos are almost the same, but just one creates the table defined in the mapping file, the other one doesnot. The objects referenced in the map do not have a reference back (one object just has simple properties, the other object has a hibernate.list and some simple properties)
This one creates the table "user_def_fields_id_to_field"
Code:
<map
name="idsToUserDefField"
table="user_def_fields_id_to_field"
lazy="false"
sort="unsorted"
cascade="all"
>
<key
column="user_def_fields_id"
>
</key>
<index
column="mapkey"
type="java.lang.String"
/>
<one-to-many
class="com.seqis.kltm.model.db.project.UserDefField"
/>
</map>
This one does
not create the table "xxx_yyy_filter_values"
Code:
<map
name="values"
table="xxx_yyy_filter_values"
lazy="false"
sort="unsorted"
cascade="all"
>
<key
column="filter_model_id"
>
</key>
<index
column="mapkey"
type="java.lang.String"
/>
<one-to-many
class="com.seqis.kltm.model.db.project.filter.ProjectFilterModelValues"
/>
</map>
so if possible i want to debug through the table creation to find my mistake. so where does hibernate read the hbm.xml files and generates the sql syntax? or is my mistake trivial but im too blind to see?
thx