Skip to content

Instantly share code, notes, and snippets.

@brmeyer
Created May 30, 2014 03:32
Show Gist options
  • Save brmeyer/afac86cfaa6fac3232bf to your computer and use it in GitHub Desktop.
Save brmeyer/afac86cfaa6fac3232bf to your computer and use it in GitHub Desktop.
<class name="Party" mutable="false">
<join table="contract_party"
inverse="true"
optional="true">
<key column="party"/>
<many-to-one name="contract"
column="contract"
not-null="true"/>
</join>
</class>
<class name="Contract" mutable="false">
<set name="parties" table="contract_party" inverse="false" mutable="true" cascade="all">
<key column="contract"/>
<many-to-many column="party" unique="true" class="Party"/>
</set>
</class>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment