mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-18 10:02:11 +00:00
DATAES-410 - Adapt API changes in Property in test cases.
This commit is contained in:
parent
75f34e4d02
commit
51d0f95f65
@ -66,7 +66,8 @@ public class SimpleElasticsearchPersistentEntityTests {
|
|||||||
private static SimpleElasticsearchPersistentProperty createProperty(SimpleElasticsearchPersistentEntity<?> entity,
|
private static SimpleElasticsearchPersistentProperty createProperty(SimpleElasticsearchPersistentEntity<?> entity,
|
||||||
String field) {
|
String field) {
|
||||||
|
|
||||||
Property property = Property.of(ReflectionUtils.findField(entity.getTypeInformation().getType(), field));
|
TypeInformation<?> type = entity.getTypeInformation();
|
||||||
|
Property property = Property.of(type, ReflectionUtils.findField(entity.getType(), field));
|
||||||
return new SimpleElasticsearchPersistentProperty(property, entity, SimpleTypeHolder.DEFAULT);
|
return new SimpleElasticsearchPersistentProperty(property, entity, SimpleTypeHolder.DEFAULT);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user