• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with cmr-field-type

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic