# sprint-2 - example fix.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/ac9ffe8c Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/ac9ffe8c Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/ac9ffe8c Branch: refs/heads/ignite-573 Commit: ac9ffe8cde3e15a0dae458e7489b54237c73e561 Parents: d5487f5 Author: Dmitiry Setrakyan <dsetrak...@gridgain.com> Authored: Wed Mar 25 00:11:39 2015 -0700 Committer: Dmitiry Setrakyan <dsetrak...@gridgain.com> Committed: Wed Mar 25 00:11:39 2015 -0700 ---------------------------------------------------------------------- .../org/apache/ignite/examples/datagrid/CacheQueryExample.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ac9ffe8c/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java index e667d93..f735728 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java @@ -73,16 +73,14 @@ public class CacheQueryExample { System.out.println(); System.out.println(">>> Cache query example started."); - CacheConfiguration<?, ?> orgCacheCfg = new CacheConfiguration<>(); + CacheConfiguration<?, ?> orgCacheCfg = new CacheConfiguration<>(ORG_CACHE); orgCacheCfg.setCacheMode(CacheMode.PARTITIONED); // Default. - orgCacheCfg.setName(ORG_CACHE); orgCacheCfg.setIndexedTypes(UUID.class, Organization.class); - CacheConfiguration<?, ?> personCacheCfg = new CacheConfiguration<>(); + CacheConfiguration<?, ?> personCacheCfg = new CacheConfiguration<>(PERSON_CACHE); personCacheCfg.setCacheMode(CacheMode.PARTITIONED); // Default. - personCacheCfg.setName(PERSON_CACHE); personCacheCfg.setIndexedTypes(AffinityKey.class, Person.class); try (