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
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:
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
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
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
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();
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
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
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