-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Adcock
Sent: 2005. december 15. 14:19
To: xdoclet-user@lists.sourceforge.net
Subject: RE: [Xdoclet-user] ValueObject aggregationSubclass the VO and create a hashcode method there.-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Paróczi Zsolt
Sent: Thursday, 15 December 2005 8:49 PM
To: xdoclet-user@lists.sourceforge.net
Subject: [Xdoclet-user] ValueObject aggregationI found the following problem:
I have a master detail reltaion (the details are aggregated).
If I add a detail to the master after add another detail with the same values but different reference.
The value object code does not add the second detail object to the addedDetails it will be added only to the details collection.I debugged and found this :
if (! this.onceAddedCarryItems.contains(added))
this.onceAddedCarryItems.add(added);
if (! this.addedCarryItems.contains(added))
this.addedCarryItems.add(added);both conditions are false so I suppose that both VOs hashCode are the same
and the Collection.contains method finds this object in the collection by its hashCode.
My questions are that;
Is it a normal behavior or bug?
Where can I modify the VO's hashCode generator algorythm.
Thanks,
Zsolt Paroczi
Title: Message
It sounds good, but we have several generated code where the generated VO
refered as its original type.
Of course your suggestion solves our problem but I think the original
behivior is wrong.
- [Xdoclet-user] ValueObject aggregation Paróczi Zsolt
- RE: [Xdoclet-user] ValueObject aggregation Frank Adcock
- RE: [Xdoclet-user] ValueObject aggregation Paróczi Zsolt