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

    Mapping primary key from referenced bean

    thammoud

      Hello,

      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_a
      id_b (FK_naming_authority)
      field a
      field b

      NamingAuthority_table
      ---------------------
      id_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