You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Sergi Vladykin (JIRA)" <ji...@apache.org> on 2015/08/14 12:51:45 UTC

[jira] [Created] (IGNITE-1249) Incorrect example Group index example.

Sergi Vladykin created IGNITE-1249:
--------------------------------------

             Summary: Incorrect example Group index example.
                 Key: IGNITE-1249
                 URL: https://issues.apache.org/jira/browse/IGNITE-1249
             Project: Ignite
          Issue Type: Bug
            Reporter: Sergi Vladykin
            Assignee: Yakov Zhdanov
            Priority: Blocker


In the following example 
https://github.com/gridgain/gridgain-advanced-examples/blob/master/src/main/java/org/gridgain/examples/datagrid/query/GroupIndexExample.java

we have a wrong annotation usage.
{code}
@QuerySqlField(index = true)
@QuerySqlField.Group(name = "idx1", order = 1)
private int bla;
{code}

The correct one must look like this
{code} 
@QuerySqlField(index=true, orderedGroups = {@QuerySqlField.Group(name = "grp1", order = 1), @QuerySqlField.Group(name = "grp2", order = 2)})
{code}





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)