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

Reply via email to