Heelo,
try check SQL, that Castor send to Database. I suppose in this SQL like
this:
update se bla bla bla WHERE field1=value1 and ...

Try execute SQL manualy. If you get 0 ros(s) - it mean that Castor guess
that object modified by annoter process or transaction becose WHERE
clause is incorect.
If Castor get 0 rows during update it throw ObjectModifiedExcpetion

Try before update debug all object field and make sure that all fields
are correct.

-----Original Message-----
From: Tancerel Benoit [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 24, 2002 12:19 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Long Transaction Problem !!! HELP


i tried with all the options of <cache-type/>
all my value of my persistent object are values or null (there's no ""
values) and my db.update always send me an ObjectModifiedExcpetion

if use db.load, set my fields and db.commit
how can i know that my data were changed by another user ??

Ben

-----Message d'origine-----
De:     Alexey A. Efimov [SMTP:[EMAIL PROTECTED]]
Date:   mercredi 23 janvier 2002 20:22
A:      [EMAIL PROTECTED]
Objet:  Re: [castor-dev] Long Transaction Problem !!! HELP

Castor hold timestamp labels in this cache. If you turn off the cache,
Castor no stote timestamps, it make imposible timestamp compare, and
Castor throws timeStamp. You can turn cach to on. Or use db.load then
set fields and db.commit

-----Original Message-----
From: Tancerel [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 23, 2002 10:09 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Long Transaction Problem !!! HELP


is the <cache-type/> value is important in this case ?
if i put none , castor indicates me that thers is no timestamp

Ben

-----Message d'origine-----
De:     Oleg Nitz [SMTP:[EMAIL PROTECTED]]
Date:   mercredi 23 janvier 2002 17:26
A:      [EMAIL PROTECTED]
Objet:  Re: [castor-dev] Long Transaction Problem !!! HELP

Tancerel wrote:
> but in my previous question, i've got a problem of already modified
> object with my db.update

> so what is the solution about that
I have no idea, your code snippet is small, but what I see is correct.
You said that your object implements TimeStampabe. I wonder if is't
implemented correctly: is the timestamp value really hold unchanged
during the long transaction? Another question: did you turned the castor
cache off by <cache-type type="none"/> in mapping.xml?

Oleg

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

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

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

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

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

Reply via email to