Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311757 - support query keys in JPQL
Summary: support query keys in JPQL
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-05-05 11:31 EDT by James Sutherland CLA
Modified: 2022-06-09 10:24 EDT (History)
0 users

See Also:


Attachments
fixes query key and several other bugs (34.99 KB, patch)
2010-05-06 15:17 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-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