<?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="Person" table="people">
        <id name="id" column="ID" access="field">
            <generator class="native"/>
        </id>
        
        <property name="name" type="string" column="name" access="field"/>
        
        <many-to-one name="department" class="Department" access="field">
            <column name="departmentid" />
        </many-to-one>    
        <many-to-one name="site" class="Site" access="field">
            <column name="siteid" />
        </many-to-one>    
        
 
    </class>
</hibernate-mapping>