0 Replies Latest reply on Jan 10, 2017 5:33 AM by xdury

    Configuring one-to-one relation with shared key in CMP entity beans

    xdury

      Hi,

       

      I am trying to migrate some very old application (EJB 2.0 + CMP entity beans (yikes!)) from weblogic to the last version of JBoss AS which supports CMP (7.x).

       

      I can't figure how to configure a master-detail relation (one-to-one) with a shared key: Master(PK) - Detail(PK = FK_to_master).

       

      I tried several configurations but JBoss always tries to create 2 columns in the Detail (one for the PK and another one for the FK to the master).

       

      Is there a way to tell JBoss that the PK of the detail is the FK to the master?

       

      Thanks,

       

      Xavier