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

Bug 331817

Summary: Add Hermes JPQL Parser
Product: z_Archived Reporter: Doug Clarke <douglas.clarke>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: adrian.goerler, douglas.clarke, neil.hauge, pascal.filion, peter.krogh, shaun.smith
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Contribution approved in CQ 4629 douglas.clarke: iplog+

Description Doug Clarke CLA 2010-12-03 15:36:12 EST
Based on the contribution of a custom JPQL parser (CQ 4629) we will be adding a new utility that will leverage this parser to validate JPQL during a build. This parser may be included in the JPA runtime in the future as well.

SVN Location: /utils/eclipselink.utils.jpql-validator

Utility Name: JPQL Validator (to be used in Utils component bug's summary)

Package root: org.eclipse.persistence.jpa.jpql
Comment 1 Doug Clarke CLA 2011-02-11 04:17:07 EST
Created attachment 188755 [details]
Contribution approved in CQ 4629
Comment 2 Doug Clarke CLA 2011-02-11 04:43:33 EST
Using the approved contribution as is I created two projects. A plugin project for the Hermes parser and a Java project for the supporting test cases. The two projects are visible now at:

http://dev.eclipse.org/svnroot/rt/org.eclipse.persistence/trunk/utils/

There are still compile issues with the actual parser. Not sure I got all the necessary package imports in the manifest but it appears there is an issue with the code.

All bugs against this parser should be logged against the Utils component with [HERMES] in the subject.

Good luck and enjoy.
Comment 3 Adrian Goerler CLA 2011-03-24 12:28:41 EDT
I see much value in having the ability to validate JPQL at build time (as well as at design time). However, from my point of view, the very same parse accessing the very same metadata model should be used at runtime, build time and design time. Otherwise inconsistent checks at runtime and at build-time will be inevitable.

Therefore, I second the plan to leverage this new parser at rutime as well.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:33:23 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink