106
/jonas-ejb-relation
.....
jonas-ejb-relation
foreign-key-jdbc-name
Table 8-4. 1-N bidirectional relationships: Default values
8.11.3.5. N-1 Unidirectional Relationships
Similar to 1-N unidirectional relationships, but the CMR field is defined on the "many" side of the
relationship, that is, on the (source bean of the) relationship role with multiplicity "many."
8.11.3.5.1. Standard Deployment Descriptor
.....
relationships
ejb-relation
ejb-relation-name a-b /ejb-relation-name
ejb-relationship-role
!-- A =
ejb-relationship-role-name a2b /ejb-relationship-role-name
multiplicity Many /multiplicity
relationship-role-source
ejb-name A /ejb-name
/relationship-role-source
cmr-field
cmr-field-name b /cmr-field-name
/cmr-field
/ejb-relationship-role
ejb-relationship-role
!-- B =
ejb-relationship-role-name b2a /ejb-relationship-role-name
multiplicity One /multiplicity
relationship-role-source
ejb-name B /ejb-name
/relationship-role-source
/ejb-relationship-role
/ejb-relation
/relationships
.....
8.11.3.5.2. Database Mapping
t_A
c_idA
cfk_idB
...
...
Optional
Optional. Default value is the abstract-schema-name of the
destination bean of the "one" side of the relationship (that is, the
source bean of the relationship role with multiplicity one),
suffixed by "_" and its primary-key-field.
B --
A --
Chapter 8. Developing Entity Beans
A_ida
in the example.
Need help?
Do you have a question about the APPLICATION SERVER - JONAS and is the answer not in the manual?
Questions and answers