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

Bug 327805

Summary: Static JPQL validation utility
Product: z_Archived Reporter: Neil Hauge <neil.hauge>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: douglas.clarke, pascal.filion, peter.krogh, shaun.smith, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
JPQL parser API
none
Updated source neil.hauge: iplog+

Description Neil Hauge CLA 2010-10-14 13:29:52 EDT
EclipseLink could benefit from a utility that would provide static validation of JPQL queries.  This could provide query validation at build time or other times when it is desirable to avoid the overhead associated with creating an EntityManager.

EclipseLink adopters could also use this type of utility in a design-time setting for query validation.
Comment 1 Neil Hauge CLA 2010-10-14 13:50:17 EDT
The utils component seems like a good fit for this functionality.  We need to determine the package root for this code.

One option would be:

org.eclipse.persistence.tools.* 

since that is what the workbench uses. Another option would be

org.eclipse.persistence.utils.* 

which is more in line with the standard component based naming.
Comment 2 Neil Hauge CLA 2010-10-19 16:49:03 EDT
It has been suggested by Doug that this contribution be made to the Incubator, where it would be worked on for a period of time before transitioning to Utils.  As a result I am changing the component field.

Another question that needs to be answered is whether this functionality should be targeted to 2.2 or a future release.
Comment 3 Pascal Filion CLA 2010-10-28 13:48:24 EDT
Created attachment 181970 [details]
JPQL parser API

The parser has approximately 26 754 lines of code, ~434 classes (including interfaces and enums).
Comment 4 Neil Hauge CLA 2010-11-03 17:09:40 EDT
Pascal, please verify that you authored 100% of this code.  Thanks.

(In reply to comment #3)
> Created an attachment (id=181970) [details]
> JPQL parser API
> 
> The parser has approximately 26 754 lines of code, ~434 classes (including
> interfaces and enums).
Comment 5 Pascal Filion CLA 2010-11-04 13:33:38 EDT
I confirm that I wrote 100% of the contribution.
Comment 6 Pascal Filion CLA 2010-11-05 10:30:24 EDT
Created attachment 182476 [details]
Updated source
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:23:24 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink