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