Gustavo Lira e Silva created ISPN-10256:
-------------------------------------------
Summary: Document what needs to be configured for an attribute to be
available for projection
Key: ISPN-10256
URL:
https://issues.jboss.org/browse/ISPN-10256
Project: Infinispan
Issue Type: Bug
Components: Documentation-Query
Affects Versions: 9.4.14.Final
Reporter: Gustavo Lira e Silva
When we query something using containing grouping and aggregation functions we receive the
exception bellow:
{noformat}
org.infinispan.objectfilter.ParsingException: ISPN014021: Queries containing grouping and
aggregation functions must use projections.
{noformat}
The code used to receive this exception:
{code:java}
Query q = createQueryFromString("select count(u.something) from User u where
user.name = 'John' Group By u.name");
{code}
setProjections on QueryBuilder is deprecated and the information about how to use
Projections using Query String is missing...
Also there is a TODO in
http://infinispan.org/docs/stable/user_guide/user_guide.html#projections
--
This message was sent by Atlassian Jira
(v7.12.1#712002)