DATAES-616 - Fix implementations of ParameterAccessor interface.

Original PR: #297
This commit is contained in:
Peter-Josef Meisch 2019-07-26 00:03:07 +02:00 committed by GitHub
parent 63172b8a69
commit 085dd9ad95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -25,6 +25,7 @@ import org.springframework.lang.Nullable;
/** /**
* @author Christoph Strobl * @author Christoph Strobl
* @author Peter-Josef Meisch
* @since 3.2 * @since 3.2
*/ */
public class ConvertingParameterAccessor implements ElasticsearchParameterAccessor { public class ConvertingParameterAccessor implements ElasticsearchParameterAccessor {
@ -58,7 +59,12 @@ public class ConvertingParameterAccessor implements ElasticsearchParameterAccess
return delegate.getDynamicProjection(); return delegate.getDynamicProjection();
} }
@Override @Override
public Class<?> findDynamicProjection() {
return delegate.findDynamicProjection();
}
@Override
public Object getBindableValue(int index) { public Object getBindableValue(int index) {
return getConvertedValue(delegate.getBindableValue(index)); return getConvertedValue(delegate.getBindableValue(index));
} }

View File

@ -27,7 +27,7 @@ import org.springframework.data.repository.query.ParameterAccessor;
* Simple {@link ParameterAccessor} that returns the given parameters unfiltered. * Simple {@link ParameterAccessor} that returns the given parameters unfiltered.
* *
* @author Christoph Strobl * @author Christoph Strobl
* @currentRead Fool's Fate - Robin Hobb * @author Peter-Josef Meisch
*/ */
class StubParameterAccessor implements ElasticsearchParameterAccessor { class StubParameterAccessor implements ElasticsearchParameterAccessor {
@ -95,4 +95,9 @@ class StubParameterAccessor implements ElasticsearchParameterAccessor {
public Optional<Class<?>> getDynamicProjection() { public Optional<Class<?>> getDynamicProjection() {
return Optional.empty(); return Optional.empty();
} }
@Override
public Class<?> findDynamicProjection() {
return null;
}
} }