[
https://issues.apache.org/jira/browse/IGNITE-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14653908#comment-14653908
]
Sergi Vladykin commented on IGNITE-1196:
----------------------------------------
Yes, to use SQL queries each field you want to access from SQL queries must be
annotated with @QuerySqlField.
Try it like this:
{code}
public class Person implements Serializable {
String name;
Integer age;
@QuerySqlField
Integer gender;
String p1;
String p2;
}
{code}
> javax.cache.CacheException: class org.apache.ignite.IgniteException: Failed
> to parse query
> ------------------------------------------------------------------------------------------
>
> Key: IGNITE-1196
> URL: https://issues.apache.org/jira/browse/IGNITE-1196
> Project: Ignite
> Issue Type: Bug
> Components: SQL
> Reporter: cxw
> Assignee: Sergi Vladykin
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)