0 Replies Latest reply on Apr 27, 2005 6:19 AM by jonasl

    Entity relationship with compound key

    jonasl Newbie

      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?