[ https://issues.apache.org/jira/browse/CXF-4221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13246133#comment-13246133 ]
Sergey Beryozkin commented on CXF-4221: --------------------------------------- > Basically, what I want to do is to use the FIQL parser, but I want to create > a JPA criteria query, as opposed to a SQL query. I was using the code > template in the advanced features section to accomplish this. OK. I wonder if the following would work for you: {code:java} SearchCondition<CriteriaQuery> search = SearchContext.getSearchCondition(CriteriaQuery.class); CriteriaQuery query = search.getCondition(); //pass it to JPA {code} Try that please. > Upon further review, it looks like I'll also have to modify the parser, as > the current parser will not be able to do bean.sub-bean.property=gt=5 (which > make sense for a SQL implementation) but for a JPA expression level > implementation, I can do more than a single-resource query. Indeed, expressions like "bean.sub-bean.property=gt=5" are not supported yet. InjectionUtils has the code for populating a given bean instance based on expressions like 'bean.sub-bean.property'. If you can somehow reuse that and provide a patch then it would be good. > FIQL visitor to return a generic <K> instead of String > ------------------------------------------------------ > > Key: CXF-4221 > URL: https://issues.apache.org/jira/browse/CXF-4221 > Project: CXF > Issue Type: Improvement > Reporter: Szu-Yu Wang > > It would be great if SearchConditionVisitor<T, K> where K was the return type > of the getResult() call. This way, I can CriteriaQuery<T> instead of String. > Also, incidentally, the operation isn't "getResult", it's more like > "getPredicate" or "getFilter"... -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira