cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (Commented) (JIRA)" <>
Subject [jira] [Commented] (CXF-4221) FIQL visitor to return a generic <K> instead of String
Date Wed, 04 Apr 2012 09:28:24 GMT


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:

SearchCondition<CriteriaQuery> search = SearchContext.getSearchCondition(CriteriaQuery.class);
CriteriaQuery query = search.getCondition();
//pass it to JPA

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 (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 "" are not supported yet. InjectionUtils
has the code for populating a given bean instance based on expressions like ''.
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:
>             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

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


View raw message