Skip to main content


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 22:55
Pradeep is currently offline PradeepFriend
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: Thu Apr 25 08:27:13 GMT 2024

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

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

Back to the top