Hibernate version: 3.0
I fear I have overlooked the solution in the documentation or maybe I haven't understood the concept of Hibernate.
I have a table-structure with a lot of tables having primary keys with more than one column. eg:
Table person:
firstName
lastName
dayOfBirth
street
zip
city
with primary key firstName, lastName and dayOfBirth
and a table companyCar with a relation to the table person:
licensePlateNumber
carType
firstName
lastName
dayOfBirth
assetCost
netBookValue
As I understood, the primary Key would be set into the <id />-Tag inside the Mapping field - and this works fine with tables having only one column as primary key, but how will I create my mapping files for these two tables and the relation between both?
Yours
Christian
|