<mapping>
<description>a map file</description>
<class name="Student">
<map-to xml="student"/>
<field name="courses" collection="collection" type="Course">
<bind-xml name="courses"/>
</field>
</class>
<class name="Course">
<map-to xml="course"/>
<field name="name" type="string">
<bind-xml name="name" node="attribute" />
</field>
</class>
</mapping>
<p class="indent">
|