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

2003-08-14 Thread Thomas Mahler
Hi Ketan, Ketan Gangatirkar wrote: Thomas, I tried using the method in tutorial4 to look up objects by OID, but I kept getting javax.jdo.JDOUserException: Given object is not a valid OID. This is the relevant code section, basically copied out of org.apache.ojb.tutorial5.UCEditProduct and

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

2003-08-14 Thread Ketan Gangatirkar
Thomas, I tried using the method in tutorial4 to look up objects by OID, but I kept getting javax.jdo.JDOUserException: Given object is not a valid OID. This is the relevant code section, basically copied out of org.apache.ojb.tutorial5.UCEditProduct and adapted slightly:

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

2003-08-10 Thread Ketan Gangatirkar
Thomas, I was wondering if you'd been able to determine the right way to proceed with this. If I understood correctly before, the JDO layer is broken and has been for some time. But that can't be right, since other people are using JDO. Regardless, I hope you find the solution; it's kind of

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

2003-08-10 Thread Thomas Mahler
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 if you rely on this state information you'll get problems... Ah, there it is. I have this problem when retrieving

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

2003-08-08 Thread Mahler Thomas
Hi Ketan, Thomas, I was wondering if you'd been able to determine the right way to proceed with this. I hope to fix the problem within the next 3 weeks. If I understood correctly before, the JDO layer is broken and has been for some time. But that can't be right, since other

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

2003-08-08 Thread Ketan Gangatirkar
Thomas, I tried your suggestion. I don't know how to interpret the results, though :-). I changed the code fragment to: PersistenceManagerFactory pmf = new OjbStorePMF(); PersistenceManager pm = pmf.getPersistenceManager();

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

2003-08-01 Thread Ketan Gangatirkar
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 jdoStateManager) when they are assembled from a row result. When an object is created and persisted, it does get assigned a

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

2003-08-01 Thread Thomas Mahler
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 jdoStateManager) when they are assembled from a row result. That's exactly the problem! I'm

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

2003-07-30 Thread Thomas Mahler
Hi Ketan, Ketan Gangatirkar wrote: 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