posted 17 years ago
Hi All,
I am trying to implement a one to many relationship with entity beans, keeping
CMR fields at both the ends.
So my ejb-jar.xml looks something like:
<ejb-relation>
<ejb-relation-name>PlayerToPlayerTeam</ejb-relation-name>
<ejb-relationship-role>
...
<multiplicity>many</multiplicity>
...
<cmr-field>
<cmr-field-name>player</cmr-field-name>
<cmr-field-type>arun.roster.entity.IPlayer</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
...
<multiplicity>one</multiplicity>
...
<cmr-field>
<cmr-field-name>teams</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
weblogic.ejbc is throwing following error:
ERROR: Error from ejbc: PAction[28824868](.ejb-jar.relationships.ejb-relation.ejb-relationship-role.cmr-field.cmr-field
-type.) must be one of the values: java.util.Set,java.util.Collection
My 'many' side of the realtionship is simple declaring a CMR field,
player of type arun.roster.entity.IPlayer. Can any one explain whats wrong with this.
Thanks in advance.
Thanks.
Arun Kumar Kandregula.
SCBCD 1.3 92%
SCJP 1.4 98%