Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYTg3YjMwNzRk...
) / New Feature (
https://hibernate.atlassian.net/browse/HHH-16887?atlOrigin=eyJpIjoiYTg3Yj...
) HHH-16887 (
https://hibernate.atlassian.net/browse/HHH-16887?atlOrigin=eyJpIjoiYTg3Yj...
) full HQL type checking for queries in @HQL annotations (
https://hibernate.atlassian.net/browse/HHH-16887?atlOrigin=eyJpIjoiYTg3Yj...
)
Change By: Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
I have rewritten the core of the Query Validator to depend only on standard annotation
processing APIs, and brought it into the Metamodel Generator. This means that queries
specified using the {{@HQL}} annotation will be completely typechecked.
*UPDATE*
This work takes the HQL typechecking code from the {{query-validator}} project, recently
rewritten to:
* be based off H6,
* support all recent JDKs, and
* _not_ depend on internal compiler APIs,
and integrates it into the Metamodel Generator.
HQL queries are now completely typechecked when they occur:
# in {{@HQL}}, or
# in {{@NamedQuery}}, within the scope of a {{@CheckHQL}} annotation.
With no {{@CheckHQL}} annotation, a named HQL query is only syntax-checked.
(
https://hibernate.atlassian.net/browse/HHH-16887#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16887#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100231- sha1:4aa4aa3 )