0 Replies Latest reply on Feb 12, 2003 6:20 PM by Tarek Hammoud

    Mapping primary key from referenced bean

    Tarek Hammoud Novice


      We have the given scenario:

      Bean Identifier has a unidirectional one-to-one reference to bean NamingAuthority.

      Identifier_table (id_a and id_b make up the primary key)
      id_b (FK_naming_authority)
      field a
      field b

      field x
      field z

      Since we are mapping the one to one relationship to bean
      NamingAuthority, how do we also include id_b in the primary key of Identifier without also mapping id_b as a field ? It seems the the prim-key only works for cmp and not for cmr.

      Thank you
      Tarek Hammoud