0 Replies Latest reply on Dec 18, 2003 6:49 AM by Carlos Eugenio

    mapping foreign key fields to cmp fields in Jboss 3.2

    Carlos Eugenio Newbie

      Does any one know how to map foreign key fields to cmp fields to make this kind of relation ship in JBoss to work?

      User
      user_pk
      name

      UserRole
      user_pk
      role_pk
      status

      Role
      role_pk
      name

      I know from other topics that I need to create an entity UserRole with a compound primary key (user_pk, role_pk). But may I configure jbosscmp-jdbc to use this compound pk as a relation cmr? Any examples?

      Thanks in advance.
      eugenio.