<?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 21-ago-2011 3:55:50 by Hibernate Tools 3.2.0.b9 -->
<hibernate-mapping package="negocio">
    <class name="ComponenteInstancia" table="COMPONENTE_INSTANCIA" schema="PUBLIC">
        <id name="idComponenteInstancia" type="int">
            <column name="ID_COMPONENTE_INSTANCIA" />
            <generator class="increment" />
        </id>
        <many-to-one name="componenteBloque" class="ComponenteBloque" fetch="select">
            <column name="ID_COMPONENTE_BLOQUE" not-null="true" />
        </many-to-one>
        <many-to-one name="instancia" class="Instancia" fetch="select">
            <column name="ID_INSTANCIA" not-null="true" />
        </many-to-one>
        <property name="texto" type="string">
            <column name="TEXTO" length="500" />
        </property>
        <property name="checkbox" type="java.lang.Integer">
            <column name="CHECKBOX" />
        </property>
        <property name="fecha" type="string">
            <column name="FECHA" />
        </property>
        <property name="portafolio" type="string">
            <column name="PORTAFOLIO" length="500" />
        </property>
        <property name="modeloMadurezPuntuacion" type="java.lang.Integer">
            <column name="MODELO_MADUREZ_PUNTUACION" />
        </property>
        <property name="modeloMadurezMediaParcial" type="java.lang.Float">
            <column name="MODELO_MADUREZ_MEDIA_PARCIAL" />
        </property>
        <property name="modeloMadurezMediaGlobal" type="java.lang.Float">
            <column name="MODELO_MADUREZ_MEDIA_GLOBAL" />
        </property>
        <property name="fechaModeloMadurez" type="string">
            <column name="FECHA_MODELO_MADUREZ" />
        </property>
        <set name="contenidoListas" inverse="true" cascade="delete">
            <key>
                <column name="ID_COMPONENTE_INSTANCIA" not-null="true" />
            </key>
            <one-to-many class="ContenidoLista" />
        </set>
    </class>
</hibernate-mapping>
