Re: can't get or query but scan works

2019-08-08 Thread relax ken
sorry, nvm, it was a wrong setup. both work now. sorry for the spawn On Thu, Aug 8, 2019 at 4:12 PM relax ken wrote: > to correct the query, I did set args > > `userDBRecordCache.query(new SqlFieldsQuery("select userId from " + > UserIgniteRecord.class.getSimpleName() + " where username = > ?").

Re: can't get or query but scan works

2019-08-08 Thread relax ken
to correct the query, I did set args `userDBRecordCache.query(new SqlFieldsQuery("select userId from " + UserIgniteRecord.class.getSimpleName() + " where username = ?").setArgs(userName));` copied a wrong one in my last email On Thu, Aug 8, 2019 at 4:09 PM relax ken wrote: > Hi, > > I am tryin

can't get or query but scan works

2019-08-08 Thread relax ken
Hi, I am trying to use ignite query and indexing by following ignite example but can't get it work. Here is my entity class: public class UserIgniteRecord { @QuerySqlField(index = true) public final String userId; @QuerySqlField(index = true) public final String username; @