Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 695 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.Patient" table="PATIENT">
<id name="id" type="long">
<column name="PATIENT_ID" />
<generator class="identity" />
</id>
<property name="name" type="java.lang.String">
<column name="NAME" />
</property>
<many-to-one name="doctor" class="com.hibernateTest.domain.Doctor">
<column name="DOCTOR_ID" not-null="true"/>
</many-to-one>
</class>
</hibernate-mapping>