Contributor |
|
Joined: Wed May 11, 2005 4:59 pm Posts: 1766 Location: Prague, Czech Republic
|
Does address_id have a unique value for each address in the AddressBook table? If so, you should just ignore the sequence_number field and pretend that address_id is the primary key (<id>).
If several addresses share the same address_id, you should use sequence_number as the primary key (<id>), map address_id to a separate property in Address class, and use property-ref attribute when mapping relations to Address in other classes.
Hope that helps...
|
|