diff --git a/libraries-data/src/main/java/com/baeldung/ignite/spring/config/SpringDataConfig.java b/libraries-data/src/main/java/com/baeldung/ignite/spring/config/SpringDataConfig.java index 20a00a0285..7627c91bc6 100644 --- a/libraries-data/src/main/java/com/baeldung/ignite/spring/config/SpringDataConfig.java +++ b/libraries-data/src/main/java/com/baeldung/ignite/spring/config/SpringDataConfig.java @@ -19,14 +19,9 @@ public class SpringDataConfig { @Bean public Ignite igniteInstance() { IgniteConfiguration config = new IgniteConfiguration(); - // Setting some custom name for the node. - //config.setIgniteInstanceName("springDataNode"); - // Enabling peer-class loading feature. - //config.setPeerClassLoadingEnabled(true); - // Defining and creating a new cache to be used by Ignite Spring Data - // repository. + CacheConfiguration cache = new CacheConfiguration("baeldungCache"); - // Setting SQL schema for the cache. + cache.setIndexedTypes(Integer.class, EmployeeDTO.class); config.setCacheConfiguration(cache); return Ignition.start(config);