<?xml version="1.0" encoding="utf-8" ?>
<!-- Licensee: Universidad de La Frontera License Type: Academic -->
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
	<class name="orm.Apoderado" table="apoderado" lazy="false">
		<id name="id_pk" column="id_pk" type="integer" unsaved-value="0">
			<generator class="increment">
			</generator>
		</id>
		<many-to-one name="colegio_id_fk" cascade="lock" column="colegio_id_fk"
			class="orm.Colegio" not-null="true" lazy="no-proxy" access="field">
		</many-to-one>
		<property name="nombre" column="nombre" type="string" length="100"
			not-null="false" lazy="false" />
		<property name="rut" column="rut" type="string" length="100"
			not-null="false" lazy="false" />
		<set name="ORM_Estudiante" lazy="true" cascade="save-update,lock"
			inverse="true">
			<key column="apoderado_id_fk" not-null="true" />
			<one-to-many class="orm.Estudiante" />
		</set>
	</class>
</hibernate-mapping>
