Hi-

There was a thread on this list regarding the fact that when using JDO,
Extent or Query results act transient, not persistent.  That is, if you
look up an object with a Query and edit it, those changes are not
persisted back to the database on commit.  The only way to get a
"really" persistent object is to look it up by an Identity.

Note that this is the kind of lookup used by Tutorial 4.  Indeed if you
look at the source for UCEditProduct (the actual file in 
src/jdori/org/apache/ojb/tutorial5/UCEditProduct.java, not the source on
the Tutorial 4 web page), you can see that the use of a Query object
appears to be commented out in place of the Identity object.

The thread that I'm referring to can be found here (it explains things
in some more detail):
http://www.mail-archive.com/[EMAIL PROTECTED]/msg03832.html

This makes the JDO API... less than ideal.  ;)

Has this problem been addressed already?  Is there a fix available?

Thanks so much,
Nick





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to