Hey folks,
just a question.
I work at framework which frequently uses KeyValueTuples similar to HashMaps.
The key is a string, the value an Object.
The value could be a KeyValueTuple too, so it comes to an amount of
circular/shared references.
Code:
fe:
TransportMessage (it is a hibernate class standing in one-to-many relationship with KeyValueTuple )
transportMessage A = transportMessage B;
->all underlaying KeyValueTuples are obtained by both TransportMessages, if one clears his KeyValueTuple collection, the other had a problem
i could handle this by creating every time new instance of TransportMessage and assign the new KeyValueTuple and so on...
My Question is, if there are common ways to handle that ??