Thought I'd bump this up - not sure how to rate it... This is a good post.
Posting my redacted mapping files just for another example
Code:
<class name="" table="" optimistic-lock="version">
<id name="Id" column="OrderTicketId">
<generator class="native">
<param name="property">OrderItem</param>
</generator>
</id>
<version name="Version" />
<one-to-one name="OrderItem" class="OmegaWeb.domain.OrderItem, OmegaWeb" cascade="all" />
</class>
Code:
<class name="" table="" optimistic-lock="version">
<id name="Id" column="OrderTicketId">
<generator class="foreign">
<param name="property">OrderTicket</param>
</generator>
</id>
<version name="Version" />
<one-to-one name="OrderTicket" class="OmegaWeb.domain.OrderTicket, OmegaWeb" constrained="true" />
</class>