How to configure a composite foreign key in Hibernate (Tools) 3.0
The scenario of this tutorial is: we have a table with a foreign key, that reference to a composite primary key of another table. Probably a Legacy database scenario… These constraints are only logical defined. Suppose we have 2 tables. USERS and ORDERS with a one-to-many relationship. But USERS has a composite primary […]
