You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Gary <gl...@yahoo.com> on 2003/12/09 19:34:01 UTC

Bidirectional 1:1 Mapping

I am struggling with the following, and have not found
any solutions on this forum (a few others with the
issue, though).  

Any new ideas?

I have a Person object; it contains child Address
objects.  The Address table entries have a foreign key
back to the Person.

I'd like the Person to have a "PrimaryAddress"
attribute.  However, this causes problems at insert
time, as the Person must know the ID of the primary
address object, yet that object must know the ID of
the person owning it.

Ideas?

Thanks, Gary

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org