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

Bug 315402

Summary: IN batch fetching on subclass mappings can fail
Product: z_Archived Reporter: James Sutherland <jamesssss>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch none

Description James Sutherland CLA 2010-06-02 10:34:08 EDT
If you mark a subclass mapping to use IN batch fetching, but none of the superclass mappings, nor the query, then the query will not know of the IN batch fetch and will not have stored the rows to provide the IN collection of ids.
Comment 1 James Sutherland CLA 2010-06-02 13:47:04 EDT
Created attachment 170846 [details]
patch
Comment 2 James Sutherland CLA 2010-06-02 13:48:15 EDT
Fixes issue.

In any subclass uses batch IN, parent is marked as using batch IN.

Also allow hints for subclass relationships, and aggregates
And throw better error when batch IN is missing.
Comment 3 James Sutherland CLA 2010-06-02 13:49:42 EDT
Fixed.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:16:33 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:21:59 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink