Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » update problem with Bidirectional composite aggregation
update problem with Bidirectional composite aggregation [message #619429] Thu, 31 May 2007 18:55
Pradeep is currently offline Pradeep
Messages: 54
Registered: July 2009
Member
Hi,

When I have bi-directional associations, if I update oneside otherside is
automatically getting updated.

Does it anyway differ if I one side of the relationship is composition.

i.e

A contains a list of Bs, and Each B has a reference to A.


class A {

// I set the association to composite aggregation.
EList<B> bs;
}

class B {
A a;
}

Now, I am forced to update both the objects. Otherwise it is resulting in
NullPointerExeception.

Thanks
Pradeep
Previous Topic:[Announce] MDT UML2 2.1.0 2.1RC1b is available
Next Topic:OCL Constraints within UML2
Goto Forum:
  


Current Time: Tue Jul 22 07:30:11 EDT 2014

Powered by FUDForum. Page generated in 0.01950 seconds