Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315402 - IN batch fetching on subclass mappings can fail
Summary: IN batch fetching on subclass mappings can fail
Status: RESOLVED 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: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-02 10:34 EDT by James Sutherland CLA
Modified: 2022-06-09 10:21 EDT (History)
0 users

See Also:


Attachments
patch (13.95 KB, patch)
2010-06-02 13:47 EDT, James Sutherland CLA
no flags Details | Diff

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