ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergi Vladykin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-1249) Incorrect example Group index example.
Date Fri, 14 Aug 2015 10:51:45 GMT
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)

Mime
View raw message