openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brad Koehn (JIRA)" <>
Subject [jira] [Commented] (OPENJPA-1277) Support JPQL to Criteria Query conversion
Date Mon, 08 Oct 2012 14:14:03 GMT


Brad Koehn commented on OPENJPA-1277:

I would love to have this feature. I have an application that needs to support generic, user-created,
persistent queries (think reports). I'd love to give the user a UI that stores a JPQL query
in the database. But when I run that query, I need to apply the (dynamic, also user-specified)
security rules to the query. For this I'd love to have the user query in a Criteria format
so that I can enhance it with whatever security filters are required. But since there's no
good way to serialize a criteria query, translating JPQL to Criteria would be a great step.

> Support JPQL to Criteria Query conversion
> -----------------------------------------
>                 Key: OPENJPA-1277
>                 URL:
>             Project: OpenJPA
>          Issue Type: New Feature
>          Components: jpa, query
>            Reporter: Pinaki Poddar
>            Assignee: Pinaki Poddar
>   Original Estimate: 672h
>  Remaining Estimate: 672h
> Develop a mechanics to generate a Criteria Query from a JPQL string.
> A mechanics to convert an existing JPQL string into a Criteria  Query will ease adoption
of the new API. 
> The conversion mechanics should operate both a design-time (to emit Java source code)
as well as runtime (to instantiate of Criteria  Query instances). 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message