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

Bug 311757

Summary: support query keys in JPQL
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
fixes query key and several other bugs none

Description James Sutherland CLA 2010-05-05 11:31:16 EDT
query keys should be supported in JPQL.

currently incorrect validation in JPQL code is preventing this.
Comment 1 James Sutherland CLA 2010-05-06 15:17:05 EDT
Created attachment 167372 [details]
fixes query key and several other bugs
Comment 2 James Sutherland CLA 2010-05-06 15:25:17 EDT
Fixed.

Patch also fixes, bugs 311023, 265702, 296852

Changes:
- Made isAbstract public in descriptor
- Don't add duplicate child tables in inheritance (avoids subclass join issues)
- Don't issue concrete select for abstract table per class descriptor
- Replaced ElementPlaceHolder with Object.class
- Fix to allow query key in select, avoid null-pointer
- Allow query keys in JPQL
- Don't generate tables for abstract table per class descriptor
- Don't define constraints to table per class descriptor that has subclasses
- Added query keys to JPA Employee model
- Added 1-1 to table per class Benefit
- Made Customer abstract to test table per class
- Added Person subclass SoftwareEngineer to test subclass tables
- Added JPQL tests for query keys
- Added tests for inheritance table per class and subclass tables
Comment 3 James Sutherland CLA 2010-05-10 10:17:59 EDT
Fixed
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:24:25 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink