Joined: Sat Jan 21, 2006 8:03 pm Posts: 1
|
RE: Documentation / Chapter 7. Association Mappings
In paragraph 7.2.1 you show many-to-one association between Person and Address.
Many persons has the same address.
In paragraph 7.2.3 you show one-to-many association but you are not consistent and this association shows
that each person may has diffrent address.
I think that <set> of Persons should be in <class name="Address"> to show diffrent view of the same idea -
one address is owned by many persons.
Isn't it confused?
PS
Also
create table Person ( personId bigint not null primary key )
create table Address ( addressId bigint not null primary key, personId bigint not null )
shows that you want to store person's key in Address table.
|
|