Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [CDO 0.8.0 M7] problem retreiving collection
[CDO 0.8.0 M7] problem retreiving collection [message #122410] Tue, 13 May 2008 22:36 Go to next message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
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.
Re: [CDO 0.8.0 M7] problem retreiving collection [message #122421 is a reply to message #122410] Wed, 14 May 2008 06:48 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Mark,

If I got you right, it seems like an issue with eContainer() or something
like that. Once there was a Bugzilla about that but I think it was fixed.
Maybe something was missing. Do you think you could provide me with a
small model that can demonstrate the effect. Just an Ecore file attached
to a new Bugzilla would be good.

Cheers
/Eike


geib wrote:

> 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.


Re: [CDO 0.8.0 M7] problem retreiving collection [message #122502 is a reply to message #122421] Wed, 14 May 2008 14:23 Go to previous messageGo to next message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
Eike,

Time is a little scarce but I could send you the .ecore I am having the
problem with. Would that work for you. If not I will make the time latter
tonight to work on a simple model that reproduces the problem.

Mark.
Re: [CDO 0.8.0 M7] problem retreiving collection [message #122520 is a reply to message #122502] Thu, 15 May 2008 07:35 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
geib wrote:

> Eike,

> Time is a little scarce but I could send you the .ecore I am having the
> problem with. Would that work for you. If not I will make the time latter
> tonight to work on a simple model that reproduces the problem.

Yes, the model you are using will be fine. Please send it to me via Email
and I'll keep it confidential. I'll also file a Bugzilla then and CC you.

Cheers
/Eike


Re: [CDO 0.8.0 M7] problem retreiving collection [message #618038 is a reply to message #122410] Wed, 14 May 2008 06:48 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Mark,

If I got you right, it seems like an issue with eContainer() or something
like that. Once there was a Bugzilla about that but I think it was fixed.
Maybe something was missing. Do you think you could provide me with a
small model that can demonstrate the effect. Just an Ecore file attached
to a new Bugzilla would be good.

Cheers
/Eike


geib wrote:

> 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.


Re: [CDO 0.8.0 M7] problem retreiving collection [message #618046 is a reply to message #122421] Wed, 14 May 2008 14:23 Go to previous message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
Eike,

Time is a little scarce but I could send you the .ecore I am having the
problem with. Would that work for you. If not I will make the time latter
tonight to work on a simple model that reproduces the problem.

Mark.
Re: [CDO 0.8.0 M7] problem retreiving collection [message #618048 is a reply to message #122502] Thu, 15 May 2008 07:35 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
geib wrote:

> Eike,

> Time is a little scarce but I could send you the .ecore I am having the
> problem with. Would that work for you. If not I will make the time latter
> tonight to work on a simple model that reproduces the problem.

Yes, the model you are using will be fine. Please send it to me via Email
and I'll keep it confidential. I'll also file a Bugzilla then and CC you.

Cheers
/Eike


Previous Topic:[CDO 0.8.0 M7] unknow error / problem
Next Topic:[CDO 0.8.0 M7] unknow error / problem
Goto Forum:
  


Current Time: Sat Apr 20 02:31:27 GMT 2024

Powered by FUDForum. Page generated in 0.03486 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top