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.


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



Back to the top