diff --git a/gradle.properties b/gradle.properties index 2e08bd17..cc1bd447 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ slf4jVersion = 1.6.4 # Common libraries springVersion = 3.1.1.RELEASE -springDataCommonsVersion = 1.3.0.M1 +springDataCommonsVersion = 1.3.0.RC1 gemfireVersion = 6.6.2 # Testing diff --git a/src/main/java/org/springframework/data/gemfire/mapping/MappingPdxSerializer.java b/src/main/java/org/springframework/data/gemfire/mapping/MappingPdxSerializer.java index 439b92d2..5d65d809 100644 --- a/src/main/java/org/springframework/data/gemfire/mapping/MappingPdxSerializer.java +++ b/src/main/java/org/springframework/data/gemfire/mapping/MappingPdxSerializer.java @@ -97,7 +97,7 @@ public class MappingPdxSerializer implements PdxSerializer, ApplicationContextAw GemfirePropertyValueProvider propertyValueProvider = new GemfirePropertyValueProvider(reader); PersistentEntityParameterValueProvider provider = new PersistentEntityParameterValueProvider( - entity, propertyValueProvider); + entity, propertyValueProvider, null); provider.setSpELEvaluator(new DefaultSpELExpressionEvaluator(reader, context)); Object instance = instantiator.createInstance(entity, provider); diff --git a/src/main/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepository.java b/src/main/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepository.java index 65b8b5b0..30a3ed41 100644 --- a/src/main/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepository.java +++ b/src/main/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepository.java @@ -41,22 +41,22 @@ public class SimpleGemfireRepository implements Gemf this.entityInformation = entityInformation; } - /* + /* * (non-Javadoc) - * @see org.springframework.data.repository.Repository#save(java.lang.Object) + * @see org.springframework.data.repository.CrudRepository#save(S) */ - public T save(T entity) { + public U save(U entity) { template.put(entityInformation.getId(entity), entity); return entity; } - /* + /* * (non-Javadoc) - * @see org.springframework.data.repository.Repository#save(java.lang.Iterable) + * @see org.springframework.data.repository.CrudRepository#save(java.lang.Iterable) */ - public Iterable save(Iterable entities) { - List result = new ArrayList(); - for (T entity : entities) { + public Iterable save(Iterable entities) { + List result = new ArrayList(); + for (U entity : entities) { result.add(save(entity)); } return result; @@ -64,7 +64,7 @@ public class SimpleGemfireRepository implements Gemf /* * (non-Javadoc) - * @see org.springframework.data.repository.Repository#findOne(java.io.Serializable) + * @see org.springframework.data.repository.CrudRepository#findOne(java.io.Serializable) */ @SuppressWarnings("unchecked") public T findOne(ID id) { @@ -74,7 +74,7 @@ public class SimpleGemfireRepository implements Gemf /* * (non-Javadoc) - * @see org.springframework.data.repository.Repository#exists(java.io.Serializable) + * @see org.springframework.data.repository.CrudRepository#exists(java.io.Serializable) */ public boolean exists(ID id) { return findOne(id) != null; @@ -82,7 +82,7 @@ public class SimpleGemfireRepository implements Gemf /* * (non-Javadoc) - * @see org.springframework.data.repository.Repository#findAll() + * @see org.springframework.data.repository.CrudRepository#findAll() */ public Collection findAll() { return template.execute(new GemfireCallback>() { @@ -111,7 +111,7 @@ public class SimpleGemfireRepository implements Gemf /* * (non-Javadoc) - * @see org.springframework.data.repository.Repository#count() + * @see org.springframework.data.repository.CrudRepository#count() */ public long count() { return template.execute(new GemfireCallback() { @@ -124,7 +124,7 @@ public class SimpleGemfireRepository implements Gemf /* * (non-Javadoc) - * @see org.springframework.data.repository.Repository#delete(java.lang.Object) + * @see org.springframework.data.repository.CrudRepository#delete(java.lang.Object) */ public void delete(T entity) { template.remove(entityInformation.getId(entity)); @@ -132,7 +132,7 @@ public class SimpleGemfireRepository implements Gemf /* * (non-Javadoc) - * @see org.springframework.data.repository.Repository#delete(java.lang.Iterable) + * @see org.springframework.data.repository.CrudRepository#delete(java.lang.Iterable) */ public void delete(Iterable entities) { for (T entity : entities) { @@ -142,7 +142,7 @@ public class SimpleGemfireRepository implements Gemf /* * (non-Javadoc) - * @see org.springframework.data.repository.Repository#deleteAll() + * @see org.springframework.data.repository.CrudRepository#deleteAll() */ public void deleteAll() {