Not sure I understand the question. @QuerySqlField annotates a particular field that can be in either key and value object. To specify which objects are stored in cache and therefore which classes Ignite should scan for these annotations, you should use setIndexedTypes.
Please refer to documentation I provided before and CacheQueryExample for more details. -Val On Fri, Dec 8, 2017 at 8:16 AM, kcheng.mvp <kcheng....@gmail.com> wrote: > thank you very much. > > as I had the settings as below, ignite should have enough information to > figure out key and value type,right? > > @QuerySqlField(index = true) > private String appId; > > @QuerySqlField(index = true) > private String uid; > > > > > > -- > Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/ >