Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
assembly="Concepts.Core"
namespace="Concepts.Core">
<class name="Person">
<id name ="Id">
<generator class="guid.comb"></generator>
</id>
<property name="GivenName"></property>
<property name="SurName"></property>
<property name="SurNamePrefix"></property>
<property name="OfficialName"></property>
<property name="DateOfBirth"></property>
<set name="Addresses"
cascade="all-delete-orphan"
inverse="true">
<key column="PersonId"></key>
<one-to-many class="PersonAddress"/>
</set>
</class>
</hibernate-mapping>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment