<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
    <!--
    Copyright (C) 2011 XStream Committers
    All rights reserved.
     
    The software in this package is published under the terms of the BSD
    style license a copy of which has been included with this distribution in
    the LICENSE.txt file.
     
    Created on 25. March 2011 by Jaime Metcher 
    -->
<hibernate-mapping package="acceptance.hibernate.reference">
    <class name="Site" table="Sites">
        <id name="id" column="ID" access="field">
            <generator class="native"/>
        </id>
        <property name="name" type="string" column="name" access="field"/>
        <set name="people" inverse="true" cascade="all-delete-orphan"  access="field">
            <key>
                <column name="siteid" />
            </key>
            <one-to-many class="Person" />
        </set>     
    </class>
</hibernate-mapping>