Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Oleg Nitz
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

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Alexey A. Efimov
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

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Tancerel Benoit
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

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Alexey A. Efimov
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

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Alexey A. Efimov
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

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Tancerel Benoit
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

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Tancerel Benoit
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

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Tancerel Benoit
db.update(this); db.commit(); } catch(PersistenceException pe) { //db.rollback(); pe.printStackTrace(); cat.error("erreur : " + pe);

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Oleg Nitz
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

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Alexey A. Efimov
: [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

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Oleg Nitz
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

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Tancerel Benoit
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

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Alexey A. Efimov
] 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

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Tancerel Benoit
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

Re: [castor-dev] Long Transaction Problem

2001-12-06 Thread Thomas Yip
(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 > > > > >

[castor-dev] Long Transaction Problem

2001-12-06 Thread Wap Brunei
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