Tancerel Benoit wrote:
> whitout the Date mapping it seems to work i've got no ObjectModifedExcpetion
> how do i map th Date fields ?
Like this
> why there's problems with Date ??
Well, there may be problems with nanoseconds: java.sql.Timestamp has
nanoseconds, but
I use java.util.Date
-Original Message-
From: Tancerel Benoit [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 1:57 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Long Transaction Problem !!! HELP
thanks for all answers
the problem seems to be the mapping of the Date
PROTECTED]]
Date: jeudi 24 janvier 2002 11:45
A: [EMAIL PROTECTED]
Objet: Re: [castor-dev] Long Transaction Problem !!! HELP
depricated :)
you already find that trouble is :))
-Original Message-
From: Alexey A. Efimov
Sent: Thursday, January 24, 2002 1:43 PM
To: [EMAIL PROTECTED]
S
depricated :)
you already find that trouble is :))
-Original Message-
From: Alexey A. Efimov
Sent: Thursday, January 24, 2002 1:43 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Long Transaction Problem !!! HELP
I not sure but. try this selects:
select * from utilisateur;
and
2 1:32 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Long Transaction Problem !!! HELP
i use MS SQL Server on a windows 2000 server
and my web app is on a linux redhat 7
Ben.
-Message d'origine-
De: Alexey A. Efimov [SMTP:[EMAIL PROTECTED]]
Date: jeudi 24 janvier 2002 11:13
A
ROTECTED]
Objet: Re: [castor-dev] Long Transaction Problem !!! HELP
Ben,
try to exclude Date fields from your mapping, I remember there were
problems with Date values conversion. How did you describe the Date
fields in mapping.xml?
If without Date fields you still get ObjectModifiedException, the
i use MS SQL Server on a windows 2000 server
and my web app is on a linux redhat 7
Ben.
-Message d'origine-
De: Alexey A. Efimov [SMTP:[EMAIL PROTECTED]]
Date: jeudi 24 janvier 2002 11:13
A: [EMAIL PROTECTED]
Objet: Re: [castor-dev] Long Transaction Problem !!! HELP
I
db.update(this);
db.commit();
}
catch(PersistenceException pe)
{
//db.rollback();
pe.printStackTrace();
cat.error("erreur : " + pe);
Ben,
try to exclude Date fields from your mapping, I remember there were
problems with Date values conversion. How did you describe the Date
fields in mapping.xml?
If without Date fields you still get ObjectModifiedException, then
exclude other fields one by one to see which one causes the except
: [castor-dev] Long Transaction Problem !!! HELP
i can't see the SQL
this is my log
[DEBUG]- timestamp : 1011863524612 this the timestamp of
the object i pass
through the session
[DEBUG]- timestamp : 1011863524612 this the timestamp of
the current
object i want to updat
Tancerel wrote:
> and i also try with
> and it doesn't execute my db.update
:)))
Sorry Ben for my bad wording, I know that this won't worked,
I thougth that your ObjectModifiedException might be caused by such
setting.
But if you tried and still got the
ObjectModifiedException than the problem d
thanks
Ben
-Message d'origine-
De: Alexey A. Efimov [SMTP:[EMAIL PROTECTED]]
Date: jeudi 24 janvier 2002 10:40
A: [EMAIL PROTECTED]
Objet: Re: [castor-dev] Long Transaction Problem !!! HELP
Heelo,
try check SQL, that Castor send to Database. I suppose in this SQL like
thi
]
Subject: Re: [castor-dev] Long Transaction Problem !!! HELP
i tried with all the options of
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 kn
n
-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
(obj);
>db.commit();
-Original Message-
>From: Wap Brunei [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, December 06, 2001 5:37 PM
>To: [EMAIL PROTECTED]
>Subject: [castor-dev] Long Transaction Problem
>
>I have a mapping like this
>
>
>
>
>
I have a mapping like this
db.begin();
MyObject OBJ = (MyObject)db.load(MyObject.class,new Integer(1));
db.commit();
db.begin(); <-- Long Transaction Begin
obj.setMyObject(OBJ);
obj.setName("Object 3");
db.create(obj);
db.commit();
// This
16 matches
Mail list logo