-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Bug in Documentation
PostPosted: Sat Jan 21, 2006 8:07 pm 
Newbie

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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.