Adapt to changes in entity creation metadata APIs in Spring Data Commons.

This commit is contained in:
Oliver Drotbohm
2022-02-15 16:08:38 +01:00
parent 3134555e4f
commit b2d5a1f35c
2 changed files with 5 additions and 4 deletions

View File

@@ -696,7 +696,8 @@ public class MappingR2dbcConverter extends BasicRelationalConverter implements R
INSTANCE;
@Override
public <T> T getParameterValue(PreferredConstructor.Parameter<T, RelationalPersistentProperty> parameter) {
public <T> T getParameterValue(
org.springframework.data.mapping.Parameter<T, RelationalPersistentProperty> parameter) {
return null;
}
}
@@ -724,7 +725,8 @@ public class MappingR2dbcConverter extends BasicRelationalConverter implements R
*/
@Override
@Nullable
public <T> T getParameterValue(PreferredConstructor.Parameter<T, RelationalPersistentProperty> parameter) {
public <T> T getParameterValue(
org.springframework.data.mapping.Parameter<T, RelationalPersistentProperty> parameter) {
RelationalPersistentProperty property = this.entity.getRequiredPersistentProperty(parameter.getName());
Object value = readFrom(this.resultSet, this.metadata, property, this.prefix);

View File

@@ -19,13 +19,12 @@ import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import org.reactivestreams.Publisher;
import org.springframework.core.convert.converter.Converter;
import org.springframework.data.convert.DtoInstantiatingConverter;
import org.springframework.data.mapping.context.MappingContext;
import org.springframework.data.mapping.model.EntityInstantiators;
import org.springframework.data.relational.core.mapping.RelationalPersistentEntity;
import org.springframework.data.relational.core.mapping.RelationalPersistentProperty;
import org.springframework.data.relational.repository.query.DtoInstantiatingConverter;
import org.springframework.data.repository.query.ResultProcessor;
import org.springframework.data.repository.query.ReturnedType;
import org.springframework.data.util.Lazy;