Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-dev] Fix for bug 342922 checked into trunk

Bug 342922 - Unwanted insert statement generated when using ElementCollection with lazy loading.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=342922

 

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

Testing: LRG & JPA LRG on Oracle and MySQL

 

Checked into trunk (2.3) r9259

Thanks

Vikram


Back to the top