CMP :

Discussions

EJB design: CMP :

  1. CMP : (1 messages)

    Can i map more than one table in a CMP ? What is the difference between CMP 1.1 and CMP 2.0 ?

    Threaded Messages (1)

  2. CMP :[ Go to top ]

    Hi,
    1. YES
    2. EJB 2.0 CMP offers more than persistence of properties. It introduces the notion of CMRs (relationships between entity beans running in the same EJB container). This enables fine-grained entities to be used to model individual tables in an RDBMS.
    Relationships involve local, not remote, interfaces. An entity bean with a remote interface may have relationships, but these cannot be exposed through its remote interface. EJB 2.0 supports one-to-one, one-to-many and many-to-many relationships. (Many-to-many relationships will need to be backed by a join table in the RDBMS. This will be concealed from users of the entity beans.) CMRs may be unidirectional (navigable in one direction only) or bidirectional (navigable in both directions).
    Nabil BENMIRA