Hello,
I use hbm2hbmxml with hibernate.reveng.xml configuration file to generate my hbm.xml.
To generate
join elements , i use
foreign-key attribute.
But this configuration doesn't work with multi columns : no join element is generated in hbm.xml file.
Code:
<table name="table_name" catalog="catalog_name" schema="schema_name">
<foreign-key
constraint-name="FK_NAME"
foreign-catalog="fk_catalog_name"
foreign-schema="fk_schema_name"
foreign-table="fk_table_name">
<column-ref local-column="id_name1" foreign-column="fk_id_name1" />
<column-ref local-column="id_name2" foreign-column="fk_id_name2" />
</foreign-key>
</table>
How to generate join elements in hbm.xml with foreign-key with multi-columns ?
Thanks
Nicolas