This one time, at band camp, Fabio Andr�s Zorzan said:

FAZ>Bruce,
FAZ>     I am having problems when I  update an Object,
FAZ>this object was uploaded with a OQLQuery, the
FAZ>problem is
FAZ>"org.exolab.castor.jdo.ObjectModifiedException:
FAZ>Timestamp mismatched!"
FAZ>This Object implement TimeStampable interface.
FAZ>
FAZ>    My query upload ~40 Objects, when update any of
FAZ>the firsts Objects, I have this problem,  when update
FAZ>any of the lasts Objects, I don�t have this Problem.
FAZ>     Down is the mapping.
FAZ>     Pardon for my English!  
FAZ>

Please post the relevant code, too, Fabio. Not the whole class, only the
relevant portion(s). 

Bruce

FAZ>XML mapping file
FAZ>
FAZ>
FAZ><?xml version="1.0" encoding="UTF-8"?>
FAZ><!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Object
FAZ>Mapping DTD Version 1.0//EN"
FAZ>"http://castor.exolab.org/mapping.dtd";>
FAZ><mapping>
FAZ>
FAZ>    <class name="castor.Actor"  identity="id"
FAZ>key-generator="MAX" access="shared"
FAZ>auto-complete="false">
FAZ>       <description>Actor definition</description>
FAZ>       <cache-type type="none"/>
FAZ>       <map-to table="actor" xml="actor" />
FAZ>         <field name="id" type="long" required="false"
FAZ>direct="false" lazy="false" transient="false">
FAZ>           <sql name="id" type="bigint"
FAZ>read-only="false" dirty="check" />
FAZ>           <xml name="id" node="attribute" />
FAZ>         </field>
FAZ>         <field name="actorId" type="string"
FAZ>required="false" direct="false" lazy="false"
FAZ>transient="false">
FAZ>           <sql name="actor_id" type="char"
FAZ>read-only="false" dirty="check" />
FAZ>           <xml name="actorId" node="element" />
FAZ>         </field>
FAZ>         <field name="firstName1" type="string"
FAZ>required="false" direct="false" lazy="false"
FAZ>transient="false">
FAZ>           <sql name="first_name1" type="char"
FAZ>read-only="false" dirty="check" />
FAZ>           <xml name="firstName1" node="element" />
FAZ>         </field>
FAZ>         <field name="firstName2" type="string"
FAZ>required="false" direct="false" lazy="false"
FAZ>transient="false">
FAZ>           <sql name="first_name2" type="char"
FAZ>read-only="false" dirty="check" />
FAZ>           <xml name="firstName2" node="element" />
FAZ>         </field>
FAZ>         <field name="lastName1" type="string"
FAZ>required="false" direct="false" lazy="false"
FAZ>transient="false">
FAZ>           <sql name="last_name1" type="char"
FAZ>read-only="false" dirty="check" />
FAZ>           <xml name="lastName1" node="element" />
FAZ>         </field>
FAZ>         <field name="lastName2" type="string"
FAZ>required="false" direct="false" lazy="false"
FAZ>transient="false">
FAZ>           <sql name="last_name2" type="char"
FAZ>read-only="false" dirty="check" />
FAZ>           <xml name="lastName2" node="element" />
FAZ>         </field>
FAZ>         <field name="emailAddress" type="string"
FAZ>required="false" direct="false" lazy="false"
FAZ>transient="false">
FAZ>           <sql name="email_address" type="char"
FAZ>read-only="false" dirty="check" />
FAZ>           <xml name="emailAddress" node="element" />
FAZ>         </field>
FAZ>         <field name="otherAffiliation" type="string"
FAZ>required="false" direct="false" lazy="false"
FAZ>transient="false">
FAZ>           <sql name="other_affiliation" type="char"
FAZ>read-only="false" dirty="check" />
FAZ>           <xml name="otherAffiliation" node="element"
FAZ>/>
FAZ>         </field>
FAZ>         <field name="otherAffiliationContact"
FAZ>type="string" required="false" direct="false"
FAZ>lazy="false" transient="false">
FAZ>           <sql name="other_affiliation_contact"
FAZ>type="char" read-only="false" dirty="check" />
FAZ>           <xml name="otherAffiliationContact"
FAZ>node="element" />
FAZ>         </field>
FAZ>         <field name="otherAffiliationPhone"
FAZ>type="string" required="false" direct="false"
FAZ>lazy="false" transient="false">
FAZ>           <sql name="other_affiliation_phone"
FAZ>type="char" read-only="false" dirty="check" />
FAZ>           <xml name="otherAffiliationPhone"
FAZ>node="element" />
FAZ>         </field>
FAZ>         <field name="otherAffiliationEmail"
FAZ>type="string" required="false" direct="false"
FAZ>lazy="false" transient="false">
FAZ>           <sql name="other_affiliation_email"
FAZ>type="char" read-only="false" dirty="check" />
FAZ>           <xml name="otherAffiliationEmail"
FAZ>node="element" />
FAZ>         </field>
FAZ>         <field name="notes" type="string"
FAZ>required="false" direct="false" lazy="false"
FAZ>transient="false">
FAZ>           <sql name="notes" type="char"
FAZ>read-only="false" dirty="check" />
FAZ>           <xml name="notes" node="element" />
FAZ>         </field>
FAZ>         <field name="deleted" type="integer"
FAZ>required="false" direct="false" lazy="false"
FAZ>transient="false">
FAZ>           <sql name="deleted" type="tinyint"
FAZ>read-only="false" dirty="check" />
FAZ>           <xml name="deleted" node="element" />
FAZ>         </field>
FAZ>        <field name="creationDate" type="date"
FAZ>required="false" direct="false" lazy="false"
FAZ>transient="false">
FAZ>           <sql name="creation_date" type="date"
FAZ>read-only="false" dirty="check" />
FAZ>           <xml name="creationDate" node="element" />
FAZ>         </field>
FAZ>        <field name="updateDate" type="date"
FAZ>required="false" direct="false" lazy="false"
FAZ>transient="false">
FAZ>           <sql name="update_date" type="date"
FAZ>read-only="false" dirty="check" />
FAZ>           <xml name="updateDate" node="element" />
FAZ>         </field>
FAZ>         <field name="contactName" type="string"
FAZ>required="false" direct="false" lazy="false"
FAZ>transient="false">
FAZ>           <sql name="contact_name" type="char"
FAZ>read-only="false" dirty="check" />
FAZ>           <xml name="contactName" node="element" />
FAZ>         </field>
FAZ>         <field name="contactTitle" type="string"
FAZ>required="false" direct="false" lazy="false"
FAZ>transient="false">
FAZ>           <sql name="contact_title" type="char"
FAZ>read-only="false" dirty="check" />
FAZ>           <xml name="contactTitle" node="element" />
FAZ>         </field>
FAZ>         <field name="status" type="integer"
FAZ>required="false" direct="false" lazy="false"
FAZ>transient="false">
FAZ>           <sql name="status" type="tinyint"
FAZ>read-only="false" dirty="check" />
FAZ>           <xml name="status" node="element" />
FAZ>         </field>
FAZ>
FAZ>         <!--  Actor has reference to Address 1 to 1
FAZ>-->
FAZ>         <field name="address" type="castor.Address"
FAZ>required="false" direct="false" lazy="false" 
FAZ>transient="false">
FAZ>           <sql name="address_id" read-only="false"
FAZ>dirty="check" />
FAZ>           <xml name="address" node="element" />
FAZ>         </field>
FAZ>         <!--  Actor has reference to Telephone 1 to
FAZ>N-->
FAZ>         <field name="telephones"
FAZ>type="castor.Telephone" required="false"
FAZ>direct="false" lazy="false" collection="vector"
FAZ>transient="false">
FAZ>           <sql many-key="actor_id"  read-only="false"
FAZ>dirty="check" />
FAZ>           <xml name="telephones" node="element" />
FAZ>         </field>
FAZ>  </class>
FAZ>
FAZ>
FAZ>
FAZ>
FAZ>
FAZ></mapping>
FAZ>
FAZ>
FAZ>
FAZ> --- Bruce Snyder <[EMAIL PROTECTED]> escribi�: > This
FAZ>one time, at band camp, Fabio Andr�s Zorzan
FAZ>> said:
FAZ>> 
FAZ>> FAZ>      I am having problems when I  update an
FAZ>> Object,
FAZ>> FAZ>this object was uploaded with a OQLQuery, the
FAZ>> problem
FAZ>> FAZ>is 
FAZ>> "org.exolab.castor.jdo.ObjectModifiedException:
FAZ>> FAZ>Timestamp mismatched!"
FAZ>> FAZ>This Object implement TimeStampable interface.
FAZ>> FAZ>What can I do?
FAZ>> 
FAZ>> Fabio,
FAZ>> 
FAZ>> Can you post some of the relevant code and mapping
FAZ>> to demonstrate when
FAZ>> this happens?
FAZ>> 
FAZ>> Bruce
FAZ>> -- 
FAZ>> perl -e 'print
FAZ>>
FAZ>unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
FAZ>> 
FAZ>>
FAZ>-----------------------------------------------------------
FAZ>> 
FAZ>> If you wish to unsubscribe from this mailing, send
FAZ>> mail to
FAZ>> [EMAIL PROTECTED] with a subject of:
FAZ>>   unsubscribe castor-dev
FAZ>>  
FAZ>
FAZ>_________________________________________________________
FAZ>Do You Yahoo!?
FAZ>Informaci�n de Estados Unidos y Am�rica Latina, en Yahoo! Noticias.
FAZ>Vis�tanos en http://noticias.espanol.yahoo.com
FAZ>
FAZ>----------------------------------------------------------- 
FAZ>If you wish to unsubscribe from this mailing, send mail to
FAZ>[EMAIL PROTECTED] with a subject of:
FAZ>    unsubscribe castor-dev
FAZ>

-- 
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

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

Reply via email to