Does cascade="all-delete-orphan" inverse="true" work together?
<p>This is my <code>OrderSet.hbm</code> file. It has <code>OrderSetMember</code>s as it's child (one-to-many) relationship.</p>

<pre><code>&lt;list name="orderSetMembers" lazy="true" cascade="all-delete-orphan" inverse="true"&gt;
    &lt;key column="order_set_id" not-null="true"/&gt;
    &lt;list-index column="sequence_number"/&gt;
    &lt;one-to-many class="OrderSetMember" /&gt;
&lt;/list&gt;
</code></pre>

<p>This is my <code>OrderSetMember.hbm</code> file. <code>OrderSetMember</code> has a many-to-one relationship with its parent. I wanted a bi-directional mapping.</p>

<pre><code>&lt;many-to-one name="orderSet" class="OrderSet"&gt;
    &lt;column name="order_set_id"/&gt;
&lt;/many-to-one&gt;
</code></pre>

<p>Can the parent and the child both be saved with one session-save command?
Or do I need to have another session save to save the child as well? </p>

<pre><code>Session session = sessionFactory.getCurrentSession();
session.saveOrUpdate(orderSet);
</code></pre>

<p>These are my data-models:</p>

<pre><code>public class OrderSet {
    private List&lt;OrderSetMember&gt; orderSetMembers;
}


public class OrderSetMember {
    private OrderSet orderSet;
}
</code></pre>