Entity relationships with compound key

Discussions

EJB programming & troubleshooting: Entity relationships with compound key

  1. Entity relationships with compound key (1 messages)

    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?
  2. 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.