I'm getting the following error, looked for how to solve it but I cant
Quote:
SFA_LISTA_PRECIOS_TIPOS_SOLICI [id_Tipo_solicitud,id_Lista_Precio])) must have same number of columns as the referenced primary key (SFA_TIPO_SOLICITUD [id_Tipo_solicitud])
The HBM containing the composite-id is...
Code:
<composite-id>
<key-many-to-one name="listaPrecios" access="property">
<column name="id_Lista_Precio" sql-type="NUMBER(19)" not-null="true" length="19"/>
</key-many-to-one>
<key-many-to-one name="tipoSolicitud" access="property">
<column name="id_Tipo_solicitud" sql-type="NUMBER(19)" not-null="true" length="19"/>
</key-many-to-one>
</composite-id>
the other hbm referencing the PK on the HBM avobe is
Code:
<many-to-one name="listaPreciosTipoSolicitud" class="ListaPreciosTipoSolicitud" outer-join="false" update="false" insert="false">
<column name="id_Tipo_solicitud" sql-type="NUMBER(19)" not-null="false" length="19"/>
<column name="id_Lista_Precio" sql-type="NUMBER(19)" not-null="true" length="19"/>
</many-to-one>
Does anyone know how to solve this ?
Regards