<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>

    <class name="net.sf.ehcache.hibernate.domain.Account" table="ACCOUNT" lazy="false">
        <id name="id" column="ACCOUNT_ID">
            <generator class="native"/>
        </id>
        
        <many-to-one name="person" class="net.sf.ehcache.hibernate.domain.Person" cascade="save-update,lock"
        column="person_id" 
        unique="true"
        not-null="true"/>
    </class>

</hibernate-mapping>
