<?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 03-may-2010 22:59:56 by Hibernate Tools 3.2.4.GA -->
<hibernate-mapping>
    <class name="es.dalocar.software.Amortizacion" table="AMORTIZACION">
        <composite-id name="id" class="es.dalocar.software.AmortizacionId">
            <key-property name="numero" type="int">
                <column name="NUMERO" />
            </key-property>
            <key-property name="anyo" type="int">
                <column name="ANYO" />
            </key-property>
        </composite-id>
        <property name="fecha" type="date">
            <column name="FECHA" length="0" />
        </property>
        <property name="identificadorcliente" type="java.lang.Integer">
            <column name="IDENTIFICADORCLIENTE" />
        </property>
        <property name="irpf" type="java.lang.Double">
            <column name="IRPF" precision="0" scale="0" />
        </property>
        <property name="importefactura" type="java.lang.Double">
            <column name="IMPORTEFACTURA" precision="0" scale="0" />
        </property>
        <property name="identificador" type="int">
            <column name="IDENTIFICADOR" not-null="true" />
        </property>
        <set name="lineaamortizacions" inverse="true" lazy="true" table="LINEAAMORTIZACION" fetch="select">
            <key>
                <column name="NUMEROFACTURA" not-null="true" />
                <column name="ANYO" not-null="true" />
            </key>
            <one-to-many class="es.dalocar.software.Lineaamortizacion" />
        </set>
    </class>
</hibernate-mapping>
