Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355959 - LAZY COLLECTIONS NOT UPDATED IN GRID WHEN ENTITY QUERIED FROM DATABASE
Summary: LAZY COLLECTIONS NOT UPDATED IN GRID WHEN ENTITY QUERIED FROM DATABASE
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-26 10:37 EDT by Andrei Ilitchev CLA
Modified: 2022-06-09 10:06 EDT (History)
0 users

See Also:


Attachments
Suggested patch (4.06 KB, patch)
2011-08-26 10:43 EDT, Andrei Ilitchev CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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