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/20 20:20:46 UTC
[jira] [Assigned] (IGNITE-1249) Incorrect example Group index
example.
[ https://issues.apache.org/jira/browse/IGNITE-1249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergi Vladykin reassigned IGNITE-1249:
--------------------------------------
Assignee: Sergi Vladykin (was: Yakov Zhdanov)
> 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: Sergi Vladykin
> Priority: Blocker
> Fix For: ignite-1.4
>
>
> 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)