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