| update problem with Bidirectional composite aggregation [message #619429] |
Thu, 31 May 2007 18:55 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.01547 seconds