I´m trying to setup a 1-many relationship between two entity beans. I can´t seem to find any information on how to do it, when one of the beans primary key is compound.
Example. I have a user table with a compound primary key UserPK(firstName, lastName).
And a email table.
A user can have many emails.
Any ideas on how to do the relationship?
-
Entity relationships with compound key (1 messages)
- Posted by: J L
- Posted on: April 26 2005 06:54 EDT
Threaded Messages (1)
- Entity relationships with compound key by Kingshuk Bandyopadhyay on April 27 2005 05:52 EDT
-
Entity relationships with compound key[ Go to top ]
- Posted by: Kingshuk Bandyopadhyay
- Posted on: April 27 2005 05:52 EDT
- in response to J L
I´m trying to setup a 1-many relationship between two entity beans. I can´t seem to find any information on how to do it, when one of the beans primary key is compound.Example. I have a user table with a compound primary key UserPK(firstName, lastName).And a email table.A user can have many emails.Any ideas on how to do the relationship?
Follow the url - http://forums.bea.com/bea/message.jspa?messageID=202263002&tstart=0
Also read the weblogic cmp dtd file for the relevant cmr section.