<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN" 
    "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">

<!-- 
    "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"
 -->

<hibernate-mapping>
    <class name="com.intel.media.mts.model.Project" table="Project">  
        <id name="id" type="int">
            <generator class="increment"></generator>  
        </id>

        <property name="name" column="name" type="string"/>
        <property name="description" column="description" type="string"/>
        
        <set name="caseTypeSet" inverse="true" cascade="all" order-by="id">
        	<key column="projectID"/>
        	<one-to-many class="com.intel.media.mts.model.CaseType"/>
        </set>

    </class>
</hibernate-mapping>