If I use this mapping, how they manage the foreign key relationship ? In the query, I didn't find FK. Do I miss anything ?
Thanks
Code:
<hibernate-mapping default-lazy="false" default-cascade="all">
<class name="com.Case" lazy="false" table="hi_case">
<id name="caseId" unsaved-value="null">
<generator class="increment"/>
</id>
<one-to-one name="customer" class="com.Customer" fetch="join" />
<set name="courtDates" table="hi_courtDate" fetch="join">
<key column="caseId"/>
<one-to-many class="com.CourtDate" />
</set>
</class>
<class name="com.CourtDate" table="hi_courtDate">
<id name="courtDateId" unsaved-value="null">
<generator class="increment"/>
</id>
<property name="courtName"/>
</class>
<class name="com.Customer" table="hi_customer">
<id name="customerId" unsaved-value="null">
<generator class="increment"/>
</id>
<property name="name"/>
</class>
</hibernate-mapping>