Hi,

 

I get the following exception:

 

org.exolab.castor.jdo.DataObjectAccessException: no method to set value for field: org.zox.PersistentTeams in class:

ClassMolder org.zox.PersistentContacts

        at org.exolab.castor.persist.FieldMolder.setValue(FieldMolder.java:321)

        at org.exolab.castor.persist.ClassMolder.revertObject(ClassMolder.java:2548)

        at org.exolab.castor.persist.LockEngine.revertObject(LockEngine.java:850)

        at org.exolab.castor.persist.TransactionContext.rollback(TransactionContext.java:1720)

        at org.exolab.castor.jdo.engine.DatabaseImpl.commit(DatabaseImpl.java:515)

        at org.zox.Persistent.updateContact(Unknown Source)

        at org.zox.Persistent.main(Unknown Source)

 

I have three tables

 

Contacts

Teams

Contacts2Teams

 

The table Contact2Teams is only a key-mapping table (contact_key, team_key)

 

The mapping looks like:

... org.zox.PersistentContacts

...

    <field name="teams" type=" org.zox.PersistentTeams" collection="vector">

      <sql name="team_key"  many-table="contacts2teams" many-key="contact_key" />

      <bind-xml name="team" node="element" />

    </field>   

..

 

... org.zox.PersistentTeams

...

    <field name="contacts" type=" org.zox.PersistentContacts" collection="vector">

      <sql name="contact_key" many-table="contacts2teams" many-key="team_key" />

      <bind-xml name="contacts" node="element" />

    </field>

...

 

in both Object-Classes I have a Get and add method, but no set.

 

How can I solve the problem?

 

Thanks,

markus

 



Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.


This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to