Hibernate: How to map a foreign key with multiple columns?
Posted on 2005-04-08
How can I map a foregin key constraint with multiple columns in hibernate?
I have a table report_field with a primary key of two columns (report_def_id and column_id) which itself are foreign keys. Than I have a table function with a primary key of two columns (function, report_def_id and column_id). So the primary_key of one table is contained in the primary key in the other table and is a foreign key.
This is how the table structure looks like:
Thank you very much for your help!