Community
Participate
Working Groups
Requirement to partially backport the following bug to the 2.0 line: Bug 228428 - FORUM: compare non mutable mappings with equals Situation: - Create/Read a parent object - Create a child object with an array of data (e.g. byte[]) mapped with TransformationMapping - Add child object to parent, begin transaction, persist parent, commit transaction - Create another object with an array of data (e.g. byte[]) - Change attribute on parent, begin transaction, persist parent, commit transaction - 2 extraneous update statements are performed for the child object where the child's data has not changed (the array of data) Problem: - AbstractTransformationMapping compareForChange does not take into account clone and backup field values may be array data - Comparison of potential array data needs to be made in order to avoid creating an erroneous change record for array data that has not changed, yet create a correct change record if array data has changed This change needs to be backported to 2.0. The transaction that made these changes in trunk was created under bug 301599 - https://bugs.eclipse.org/bugs/show_bug.cgi?id=301599 and fixed in r8077 (trunk)
Created attachment 181517 [details] Backport patch
Created attachment 181543 [details] Revised patch incorporating whole method
Checked into 2.0 trunk (2.0.3) r8394 Reviewed: Tom Ware
Created attachment 190184 [details] Proposed changes to 2.1 trunk (2.1.3)
Checked into 2.1.3 at r9069
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink