3 Replies Latest reply on Sep 11, 2003 12:29 PM by David Norwood

    CMR & Compound PrimKey

    dzerzhinsky Newbie

      Hello all!
      I have 2 entity beans: CountryBean with fields (id, shortName, defaultName) and LocalizedCountryDescBean with fields (cntry_id, locale, name). I need to create unidirectional 1:many relation on them so each Country has list of it descriptions. But problem is I can't define compound primary key (cntry_id, locale) on LocalizedCountryDescBean.
      Does anybody knows how could I define cntry_id field as primary and at same time to make this field to be relational field. As I understand field may be defined only as CMP or CMR and CMR fields haven't properties that say that field is part of compound primary key.
      I'm using JBoss 3.2 and XDoclet 1.2.1, so if somebody knows how to help me please try to make it using XDoclet.