Polishing.
Convert space indent to tabs.
Original pull request:
@@ -28,6 +28,8 @@ import org.springframework.data.util.Streamable;
import org.springframework.transaction.annotation.Transactional;
/**
+ * Default implementation of the {@link org.springframework.data.repository.CrudRepository} interface.
+ *
* @author Jens Schauder
* @author Oliver Gierke
*/
@@ -35,17 +37,15 @@ import org.springframework.transaction.annotation.Transactional;
@Transactional(readOnly = true)
public class SimpleJdbcRepository<T, ID> implements CrudRepository<T, ID> {
- private final @NonNull
- JdbcAggregateOperations entityOperations;
- private final @NonNull
- PersistentEntity<T, ?> entity;
+ private final @NonNull JdbcAggregateOperations entityOperations;
+ private final @NonNull PersistentEntity<T, ?> entity;
/*
* (non-Javadoc)
* @see org.springframework.data.repository.CrudRepository#save(S)
*/
- @Override
@Transactional
+ @Override
public <S extends T> S save(S instance) {
return entityOperations.save(instance);
}
@@ -54,8 +54,8 @@ public class SimpleJdbcRepository<T, ID> implements CrudRepository<T, ID> {
* (non-Javadoc)
* @see org.springframework.data.repository.CrudRepository#save(java.lang.Iterable)
*/
- @Override
@Transactional
+ @Override
public <S extends T> Iterable<S> saveAll(Iterable<S> entities) {
return Streamable.of(entities).stream() //
@@ -112,8 +112,8 @@ public class SimpleJdbcRepository<T, ID> implements CrudRepository<T, ID> {
* (non-Javadoc)
* @see org.springframework.data.repository.CrudRepository#delete(java.io.Serializable)
*/
- @Override
@Transactional
+ @Override
public void deleteById(ID id) {
entityOperations.deleteById(id, entity.getType());
}
@@ -122,8 +122,8 @@ public class SimpleJdbcRepository<T, ID> implements CrudRepository<T, ID> {
* (non-Javadoc)
* @see org.springframework.data.repository.CrudRepository#delete(java.lang.Object)
*/
- @Override
@Transactional
+ @Override
public void delete(T instance) {
entityOperations.delete(instance, entity.getType());
}
@@ -132,15 +132,15 @@ public class SimpleJdbcRepository<T, ID> implements CrudRepository<T, ID> {
* (non-Javadoc)
* @see org.springframework.data.repository.CrudRepository#delete(java.lang.Iterable)
*/
- @Override
@Transactional
+ @Override
@SuppressWarnings("unchecked")
public void deleteAll(Iterable<? extends T> entities) {
entities.forEach(it -> entityOperations.delete(it, (Class<T>) it.getClass()));
}
- @Override
@Transactional
+ @Override
public void deleteAll() {
entityOperations.deleteAll(entity.getType());
}
