3 Replies Latest reply on Sep 17, 2002 5:58 PM by Dain Sundstrom

    Jboss 3.0RC1, CMR and Java Petstore examples

    Dave Brown Newbie

      Hi,

      I have been playing with the Java Petstore 1.3 and am attempting to get to get three simple Entity beans working.

      Customer -> 1-to-1 -> ContactInfo -> 1-to-1 -> Address

      No problems with the Customer to ContactInfo relationship. However the ContactInfo to Address relationship fails with an error message "Atleast one role of a foreign-key mapped relationship must have key fields".

      Now the actual ContactInfo or Address fields have not got an explict key field defined, but do have a prim-key-class attribute.

      Is this normal? Have I forgotten something? Do I have to define a primkey-field for one of the Entity beans?