I've been working from some examples on bidirectional mapping, but I couldn't work out when the children of some objects were not being saved.
http://docs.jboss.org/hibernate/stable/core/reference/en/html/collections.html#collections-bidirectionalTake for example section 6.3.3
Quote:
<class name="Parent">
<id name="id" column="parent_id"/>
....
<map name="children" inverse="true">
<key column="parent_id"/>
<map-key column="name"
type="string"/>
<one-to-many class="Child"/>
</map>
</class>
Is the cascade-all keyword required if I want the children to be saved? In my case I have to use cascade-all for bidirectional maps yet I don't need it for similarly configured bidirectional sets.