Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355959

Summary: LAZY COLLECTIONS NOT UPDATED IN GRID WHEN ENTITY QUERIED FROM DATABASE
Product: z_Archived Reporter: Andrei Ilitchev <andrei.ilitchev>
Component: EclipselinkAssignee: Project Inbox <eclipselink.foundation-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Suggested patch none

Description Andrei Ilitchev CLA 2011-08-26 10:37:35 EDT
Required by TopLink grid to ensure that when an object was retrieved from the db and lazy relationships were resolved that the relationship information was put into the grid to avoid subsequent SQL queries.
Comment 1 Andrei Ilitchev CLA 2011-08-26 10:43:56 EDT
Created attachment 202234 [details]
Suggested patch

Define a new setSourceObject method in IndirectionPolicy, which for TransparentIndirection sets the source object into underlining QueryBasedValueHolder (otherwise does nothing).
Call this method from ForeignMapping.readFromRowIntoObject.
Comment 2 Andrei Ilitchev CLA 2011-08-26 11:21:01 EDT
Checked the patch into both trunk (2.4) and 2.3.1.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:06:06 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink