Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Containment
Containment [message #425588] Tue, 02 December 2008 16:42 Go to next message
Eclipse UserFriend
Originally posted by: luzi.anderegg.ergon.ch

Hi

I'm still struggling with the exact meaning of a containment reference
in connection with the eopposite attribute. Does it make sense to have a
containment without setting eopposite? If yes, when and what are the
implications in the generated code?

Luzi
Re: Containment [message #425590 is a reply to message #425588] Tue, 02 December 2008 16:57 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31164
Registered: July 2009
Senior Member
Luzi,

Yes, the opposite of a containment is called a container reference.
It's effectively just a view on the EObject.eContainer value. Just
generate the code for any sample and see what it does.


Luzi Anderegg wrote:
> Hi
>
> I'm still struggling with the exact meaning of a containment reference
> in connection with the eopposite attribute. Does it make sense to have
> a containment without setting eopposite? If yes, when and what are the
> implications in the generated code?
>
> Luzi
Previous Topic:Ecore2Java not working from CLI
Next Topic:[CDO] "Auto commit"
Goto Forum:
  


Current Time: Sat Jun 06 05:46:49 GMT 2020

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

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

Back to the top