Hi,
I have a special stuation that I need to map one property into two columns. Is it possible? I've tried this mapping:
Code:
<many-to-one name="classe" class="Classe">
<column name="COD_CLASSE" scale="11" precision="0" not-null="false" />
<column name="COD_TIPO_OCORR" scale="11" precision="0" not-null="false" />
</many-to-one>
But received this error:
org.hibernate.MappingException: Foreign key (FK6B08A21A2E6A76F6:OCORRENCIA_SUBTRANSMISSAO [COD_CLASSE,COD_TIPO_OCORR])) must have same number of columns as the referenced primary key (CLASSE [COD_CLASSE])