|
hi all,
i am using
Castor JDO (version 0.9.5.2) and i have written a class (named
CastorEntry)
which implements the interface Persistent and
TimeStampable.
as part of my junit test, i am creating an object,
then i am querying the database to see if the#
object is there, and if it is there i delete
it.
the three operations are done in different
transaction (because i am doing thru different operations in a
BusinessDelegate),
so, i have no problem in creating, no problem
querying but when i try to delete the object found from the query i get
this
exception
org.exolab.castor.jdo.ObjectNotPersistentException:
The object of type com.myapp
.castor.CastorEntry is not persistent -- it was not queried or created within th is transaction the table entries (associated with the object
CastorEntry) has no timestamp column.. i tried to add a colum called timestamp,
but
since i am using mysql there is no 'long'
type, so only choice was to add a colum of type timestamp..
but when i define the mapping, the long to
timestamp is not accepted..
can anyone help me in solving my
problem?
with best regards
marco
|
- Re: [castor-dev] problem when deleting an Object marco mistroni
- Re: [castor-dev] problem when deleting an Object Bert van Brakel
- Re: [castor-dev] problem when deleting an Object Werner Guttmann
