Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (21 sloc) 826 Bytes
<?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="com.hibernateTest.domain.Specialty" table="SPECIALTY">
<id name="id" type="long">
<column name="SPECIALTY_ID" />
<generator class="identity" />
</id>
<property name="name" type="java.lang.String">
<column name="NAME" />
</property>
<set name="doctorList" table="DOCTOR"
inverse="true" lazy="true" fetch="select">
<key>
<column name="SPECIALTY_ID" not-null="true" />
</key>
<one-to-many class="com.hibernateTest.domain.Doctor" />
</set>
</class>
</hibernate-mapping>