[ 
https://issues.apache.org/jira/browse/OPENJPA-1277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13471566#comment-13471566
 ] 

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: https://issues.apache.org/jira/browse/OPENJPA-1277
>             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: http://www.atlassian.com/software/jira

Reply via email to