Fix broken merge.

See #1721
Original pull request #1722
This commit is contained in:
Jens Schauder
2024-04-23 17:13:37 +02:00
parent ecdf7039ed
commit 792d773cbd
2 changed files with 19 additions and 4 deletions

View File

@@ -28,10 +28,11 @@ import org.springframework.data.relational.core.mapping.RelationalPersistentEnti
import org.springframework.data.relational.core.mapping.RelationalPersistentProperty;
import org.springframework.data.relational.repository.Lock;
import org.springframework.data.relational.repository.query.RelationalEntityMetadata;
import org.springframework.data.relational.repository.query.RelationalParameters;
import org.springframework.data.relational.repository.query.SimpleRelationalEntityMetadata;
import org.springframework.data.repository.core.NamedQueries;
import org.springframework.data.repository.core.RepositoryMetadata;
import org.springframework.data.repository.query.Parameters;
import org.springframework.data.repository.query.ParametersSource;
import org.springframework.data.repository.query.QueryMethod;
import org.springframework.jdbc.core.ResultSetExtractor;
import org.springframework.jdbc.core.RowMapper;
@@ -67,6 +68,7 @@ public class JdbcQueryMethod extends QueryMethod {
MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> mappingContext) {
super(method, metadata, factory);
this.namedQueries = namedQueries;
this.method = method;
this.mappingContext = mappingContext;
@@ -75,8 +77,8 @@ public class JdbcQueryMethod extends QueryMethod {
}
@Override
protected RelationalParameters createParameters(Method method) {
return new JdbcParameters(method);
protected Parameters<?, ?> createParameters(ParametersSource parametersSource) {
return new JdbcParameters(parametersSource);
}
@Override