Stefan Klein dijo: > Hi Bert, > >> Does the problem with object identities mean that OJB is not the right >> way to go when building forms that display editable lists? If that is >> that case I lost quite a lot of time just trying to find an quicker way >> to build web forms. >> What are the limitiations of OJB exactly? > > thought I'd point this out to you, since it cost me a lot of time and I > still haven't solved it in a satisfying way. AFAIK, there is a bug in the > current OJB release rc5 with the use of javax.jdo.Query (as you use in > your retrieve method). The objects in the collection it returns are > actually not persistent as they should be.
Later I remeber about this issue and in fact this is not a bug! >From the JDO 1.01 specification (page 109): <snip> 14.6.1 Query Execution The Query interface provides methods that execute the query based on the parameters given. They return an UNMODIFIABLE Collection wich the user can iterate to get results. Executing ANY operation on the Collection that might change it throws UnsupportedOperationException. For future extension, the signature of the execute methods specifies that they return an Object that must be cast to Collection by user. </snip> Best Regards, Antonio Gallardo --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
