1 Reply Latest reply on Jul 27, 2004 2:44 PM by Kabir Khan

    CMR relationships in JBoss

    Cristian Botiza Newbie

      Hello.

      I have a CMP entity bean (CommandItem) and a BMP entity bean (Product) and want to declare a unidirectional relationship from CommandItem to Product (a CommandItem comprises a Product). I have declared the relationship in ejb-jar.xml but I got an exception at deployment time. It says that "entity Product not found in relation". Is this because Product is using BMP? As far as the database mapping is concerned, I use Oracle8i, and I have a foreign key in the CommandItems table, pointing to a product in the Products table.
      Is there any workaround for this? Should I also declare the relation in jbosscmp-jdbc.xml?

      Thank you very much