| [CDO 0.8.0 M7] problem retreiving collection [message #618037] |
Tue, 13 May 2008 18:36 |
Eclipse User |
|
|
|
Eike,
With Eclipse 3.4, etc release coming soon I have taken up again the
migration to CDO from Teneo.
I am having a problem which keeps me from continuing however.
To help you understand the model assume I have a Library class which
contains a Book class. Then the model has a number of sub-classes of book,
like redBook blueBook. In addition from the Library class there are
references to each sub class of Book. So for example I can retrieve all
the redBooks via a call to getRedBooks() on the Library object. So again,
I have two references to each sub class, one is to the super class Book
and then one to each sub class. In this way I can retrieve all Books or
all RedBooks.
BTW, the Book class is not abstract.
Now, in addition there are references from Book to other collections, like
OldBook or BigBook. As you can imagine I can from a OldBook collection
retrieve all Books via a call to the getBooks() method of OldBook object.
My problem is that if I retrieve all Books from an OldBook object and then
from each indivdual Book call getLibrary() that ALWAYS returns null. I can
not seem to get the Library from a Book.
This does not fail with Teneo, my production system.
Looking forward to your help,
Mark.
|
|
|
Powered by
FUDForum. Page generated in 0.03471 seconds