DATAJDBC-143 - Removed domain type parameter form JdbcEntityOperations.save().
Such a parameter would only make sense with inheritance and we don't support inheritance at all in the moment. Anything we need in order to support inheritance should be added once we do support inheritance.
This commit is contained in:
committed by
Greg Turnquist
parent
387c3eca18
commit
01478cc53d
@@ -23,7 +23,7 @@ package org.springframework.data.jdbc.core;
|
||||
*/
|
||||
public interface JdbcAggregateOperations {
|
||||
|
||||
<T> void save(T instance, Class<T> domainType);
|
||||
<T> void save(T instance);
|
||||
|
||||
<T> void deleteById(Object id, Class<T> domainType);
|
||||
|
||||
|
||||
@@ -64,10 +64,10 @@ public class JdbcAggregateTemplate implements JdbcAggregateOperations {
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> void save(T instance, Class<T> domainType) {
|
||||
public <T> void save(T instance) {
|
||||
|
||||
JdbcPersistentEntityInformation<T, ?> entityInformation = context
|
||||
.getRequiredPersistentEntityInformation(domainType);
|
||||
.getRequiredPersistentEntityInformation((Class<T>) instance.getClass());
|
||||
|
||||
AggregateChange change = createChange(instance);
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ public class SimpleJdbcRepository<T, ID> implements CrudRepository<T, ID> {
|
||||
@Override
|
||||
public <S extends T> S save(S instance) {
|
||||
|
||||
entityOperations.save(instance, entityInformation.getJavaType());
|
||||
entityOperations.save(instance);
|
||||
|
||||
return instance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user