|[eclipselink-dev] Fix for bug 342922 checked into trunk|
Bug 342922 - Unwanted insert statement generated when using ElementCollection with lazy loading.
Added a flag to CollectionChangeEvent to identify if the change has already been applied to the collection before raising collection change event ADD or REMOVE. The flag will be passed as true from IndirectList, IndirectSet and IndirectMap whereas false from DirectCollectionMapping while merging the object.
Changed ContainerPolicy and its subclasses to pass the flag in createChangeEvent method.
Added test case to AdvancedJunitTest.
Reviewed: Gordon Yorke
Checked into trunk (2.3) r9259
Back to the top