1 Reply Latest reply on Dec 9, 2002 5:17 PM by dsundstrom

    Relation between CMP and BMP Entities?

    klosels

      Hi,

      I'm in a situation where I want to stay with CMP for my entities as far as possible but want to implement one of them using BMP.
      How can I implement a relationship between one of the CMP beans and the BMP bean?
      The obvious answer probably is to implement access to the relation explicitly/in BMP-style in both beans. I would like to know if there is any other way to do this by using CMR definitions/accessors on the CMP side, thus avoiding to have code inside the CMP bean which needs to rely on the physical database schema.

      Any advice or pointers to where I can find any information on this topic is greatly appreciated...!

      Lars.

        • 1. Re: Relation between CMP and BMP Entities?
          dsundstrom

          You really can't do this automatically. The problem is you really need a callback in the BMP bean for relationship messages such as id x id no longer related to you. The only way to have a relationship between a BMP and a CMP entity is to code it by hand. This means storing the id of the related object in a persistent field.