Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-dev] Bug 355959 - LAZY COLLECTIONS NOT UPDATED IN GRID WHEN ENTITY QUERIED FROM DATABASE

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

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.

Defined 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.

Checked the patch into both trunk (2.4) and 2.3.1.

Thanks,
Andrei


Back to the top