The first approach, as I mentioned above, is using DDL. Please see an example
https://github.com/apache/ignite/blob/master/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryDdlExample.java

The second one, you need to use CacheConfiguration.setIndexedTypes() as
follows:
    CacheConfiguration<String, AccountNew> cc = new
CacheConfiguration<>("AccountNew");
    cc.setIndexedTypes(String.class, AccountNew.calss);
    cc.setSqlSchema("PUBLIC");

Thanks!



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to