<?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.PhoneNumber" table="PHONE_NUMBERS" >
      <composite-id>
            <key-property column="PERSON_ID"  name="personId" type="java.lang.Long" />
            <key-property column="NUMBER_TYPE"  name="numberType" type="java.lang.String"/>
        </composite-id>
 
        <property name="phone" type="java.lang.Long">
            <column name="PHONE" precision="22" scale="0" />
        </property>
 
  </class>

</hibernate-mapping>
