Hibernate version: 3.0rc1
How can I get Hibernate to persist entries in the objectMap below?
It seems that the cascade operation will not be performed if the
element type is not of an Entity/Component/Any type.
The mapping fragment below shows the mapping I use.
Mapping documents:
Code:
<class name="Project">
<id/>
...
<map name="objectMap"
lazy="true"
inverse="true"
table="PROJ_OBJS"
cascade="all,delete-orphan">
<key column="PROJECT_ID"/>
<index-many-to-any id-type="int">
<column name="OBJ_REF_TYPE" length="100"/>
<column name="OBJ_REF_ID"/>
</index-many-to-any>
<element type="int" column="OBJ_COUNT" />
</map>
</class>
Any idea how to get Hibernate to cascade the save/update and insertion
of collection elements?