<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 25-jul-2011 23:24:50 by Hibernate Tools 3.2.0.b9 -->
<hibernate-mapping package="negocio">
    <class name="VistaPlantilla" table="VISTA_PLANTILLA" schema="PUBLIC">
        <id name="idVistaPlantilla" type="int">
            <column name="ID_VISTA_PLANTILLA" />
            <generator class="increment" />
        </id>
        <many-to-one name="plantilla" class="Plantilla" fetch="select">
            <column name="ID_PLANTILLA" not-null="true" />
        </many-to-one>
        <property name="nombre" type="string">
            <column name="NOMBRE" length="30" />
        </property>
        <set name="vistaBloques" inverse="true" cascade = "delete">
            <key>
                <column name="ID_VISTA_PLANTILLA" not-null="true" />
            </key>
            <one-to-many class="VistaBloque" />
        </set>
    </class>
</hibernate-mapping>
