Hi,
Im using postgresql (7.1.3) and castor (0.9.3.9cvs) at tomcat (3.3).
Im having this problem when there is not concurrent transaction!
>From Thomas message i figure out Im having the double bug problem, so I
did add dirty="ignore" to balance field, and that fix, but I would like
know what is the exact behaivor of this option, and if there isnt
something less "dirty" to work out this.
I did have this problem prior with the opening field before, when i did
insert a account by hand at database with 0 in the opening field, but I
think that was my fault, right?
BTW, i would like sugest change the exception name to
MaybeObjectModifiedException
since, that would help not lead to wrong direction debug, maybe.
Thanks.
---
There is my map:
<class name="com.bigbross.account.Account"
identity="id" key-generator="MAX"
dependent="com.bigbross.account.Account">
<description>Account</description>
<map-to table="account" xml="Account"/>
<field name="balance" type="double">
<sql dirty="ignore" name="balance" type="double"/>
<xml node="attribute" />
</field>
<field name="opening" type ="date">
<sql name="opening" type="numeric[YMDhmsS]" />
</field>
</class>
---
There is my exception:
org.exolab.castor.jdo.ObjectModifiedException: Transaction aborted:
Object of type com.bigbross.account.Account with identity 3 has been
modified by a concurrent transaction
---
* From: Thomas Yip
* Subject: Re: [castor-dev] Concurrent transaction problem.
* Date: Thu, 04 Oct 2001 15:46:01 -0700
Second, the database failed to agree some values is "equal" when it
expected. It sometimes happens in Date, or float and double types. You
can
isolate those file by my adding <sql dirty="ignore" /> to those field
and
see if the ObjectModifiedException will gone.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev