All, I changed the Activity mapping to this:
Code:
class
name="employeeclub.domain.Activity"
table="activity"
>
<id
name="id"
type="long"
column="id"
>
<generator class="net.sf.hibernate.id.TableHiLoGenerator">
<param name="table">activity_seq</param>
<param name="column">next_hi</param>
<param name="max_lo">1</param>
</generator>
</id>
<property
name="name"
type="java.lang.String"
column="name"
not-null="true"
length="255"
/>
<property
name="description"
type="java.lang.String"
column="description"
length="255"
/>
<!-- associations -->
<!-- bi-directional one-to-one association to ActivityTicket -->
<one-to-one
name="activityTicket"
class="employeeclub.domain.ActivityTicket"
outer-join="auto"
property-ref="activity"
cascade="all"
/>
</class>
Notice the 'cascade="all"! My mistake. Now that it is trying to save the dependent object though, the DB generates the following error message:
Cannot insert the value NULL into column 'detail_id'
This mapping was declared in the "ActivityTicket" mapping. What gives?
Joshua