Re: JDO inheritance problem

2003-08-21 Thread Ketan Gangatirkar
Cédric, You need to define the attribute persistent-capable-superclass in your .jdo file for the sub-class. So if you have class A extends class B, your .jdo file would have: The JDORI enhancer creates final methods to access the persistent attributes of the object. If it does not know tha

Re: Why not insert null?

2003-08-14 Thread Ketan Gangatirkar
That is how nulls work in MySQL with the TIMESTAMP column type. If you insert a null or assign a column to null, it will fill in the current time. See here: http://www.mysql.com/doc/en/DATETIME.html lyl wrote: > Hi! > > I have a mysql table, one field is TIMESTAMP, > When i insert a record u

Re: JDO - Objects fetched from DB are in transient state, not persistent

2003-08-14 Thread Ketan Gangatirkar
:83) If I can get lookups to work this way, that would certainly suffice for my needs. Thomas Mahler wrote: Hi again ketan, Ketan Gangatirkar wrote: The only problem seems to be that I did not manage to transfer the correct state information during the retrieval of extents. Only

Re: JDO - Objects fetched from DB are in transient state, not persistent

2003-08-09 Thread Ketan Gangatirkar
's kind of hard to use JDO when it's read-only :-). Thanks. Thomas Mahler wrote: Hi Ketan, Ketan Gangatirkar wrote: Thomas, I've been stepping through the OBJ JDO and JDORI code. I have determined that the PersistenceCapable objects never are assigned a StateManager (member j

Re: JDO - Objects fetched from DB are in transient state, not persistent

2003-08-08 Thread Ketan Gangatirkar
y(b)) from within the Extent iteration loop, which threw the same JDOUserException. I can't tell if this is good news or bad; hopefully this gives you enough information to tell. If nothing else, it's consistent! Thomas Mahler wrote: Hi Ketan, Ketan Gangatirkar wrote: Thomas

Re: JDO - Objects fetched from DB are in transient state, not persistent

2003-08-08 Thread Ketan Gangatirkar
Thomas, Thank you for the quick reply. One thing you mentioned made me pause, however. Mahler Thomas wrote: The only problem seems to be that I did not manage to transfer the correct state information during the retrieval of extents. Only if you rely on this state information you'll get problem

Re: Error reading repository.xml

2003-08-04 Thread Ketan Gangatirkar
Norival, The XML parser is looking for a protocol for the DTD URI in the DOCTYPE declaration. I don't know how to do relative URIs in this context, so I've used absolute URIs like: file:///c:/obj/repository.dtd. No doubt there's a better way, but this will at least get you unstuck. Norival N

Re: JDO - Objects fetched from DB are in transient state, not persistent

2003-08-01 Thread Ketan Gangatirkar
ned a StateManager, but I see no corresponding assignment for objects fetched from the DB. At what point should that be happening? Thomas Mahler wrote: Hi Ketan, Ketan Gangatirkar wrote: All, I'm having a problem with objects fetched from the database. All JDOs are treated as Transient objects

JDO - Objects fetched from DB are in transient state, not persistent

2003-07-30 Thread Ketan Gangatirkar
All, I'm having a problem with objects fetched from the database. All JDOs are treated as Transient objects when they have just been fetched from the database. Thus, they don't have object ids (.jdoGetObjectId() returns null) or a reference to a PM (.jdoGetPersistenceManager() returns null). ob