hi,
i have a one-to-one association:
Code:
<class name="ambar.modelo.cuenta.CuentaPeriodo" table="cuenta_periodo">
<id name="id" column="id" unsaved-value="-1">
<generator class="sequence">
<param name="sequence">sc_cuenta_periodo</param>
</generator>
</id>
.....
<one-to-one name="liquidacion" class="ambar.modelo.cuenta.LiquidacionConsumo"/>
...</class>
and in CuentaPeriodo.java i have an object liquidacion of type ambar.modelo.cuenta.LiquidacionConsumo
but i don´t want to have in LiquidacionConsumo.java an object cuentaPeriodo
so this mapping doesn´t work:
Code:
<class name="ambar.modelo.cuenta.LiquidacionConsumo" table="liquidacion_consumo">
<id name="id" column="id">
<generator class="foreign">
<param name="property">id</param>
</generator>
</id>
.....
<one-to-one name="id" class="ambar.modelo.cuenta.CuentaPeriodo" property-ref="liquidacion"/>
...</class>
i don´t know if i´m clear enough if i´m not please let me know.
thanks everyone for any help,
Juan Gabriel Romero Silva