CMP Relation Configuration
Resin 2.1

Reference Guide
EJB Reference Guide

EJBServer
JNDI
Entity Config
Relation Config
Session Config
Resin-EJB Config
SQL mapping
Transaction Config
Message Config
EJB-QL
xdoclet
Config Summary
Burlap
JMS
CORBA/IIOP
Index
Entity Config
EJB Reference Guide
Session Config

Relations between entity beans are configured in the <relations> block.

<ejb-jar>
  <enterprise-beans>
    <entity>
      ...
    </entity>
  </enterprise-beans>

  <relationships>
    <ejb-relation>
      ...
    </ejb-relation>
  </relationships>
</ejb-jar>
cmr-fieldThe name of the relation field for entity bean
ejb-nameThe name of the entity bean that the relation belongs to

Relation Configuration

ejb-name

The name of the entity bean that the relation belongs to. Each of the <ejb-relationship-role> tags has an ejb-name.

cmr-field

The name of the relation field for entity bean. The source bean must have a cmr-field, while the target bean will only have a cmr-field if it has a corresponding Java method.

Formal Definition

relationships ::= ejb-relation*

ejb-relation ::= ejb-relation-name, ejb-relationship-role{2}

ejb-relationship-role ::= (relationship-role-source,
                           cmr-field)

relationship-role-source ::= (ejb-name)

cmp-field ::= (field-name)


Entity Config
EJB Reference Guide
Session Config
Copyright © 1998-2006 Caucho Technology, Inc. All rights reserved.
Resin® is a registered trademark, and HardCoretm and Quercustm are trademarks of Caucho Technology, Inc.