mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-07-12 13:23:26 +00:00
DATAES-410 - Adapt API changes in Property in test cases.
This commit is contained in:
parent
51b7fa2a26
commit
02b7dde196
@ -66,7 +66,8 @@ public class SimpleElasticsearchPersistentEntityTests {
|
||||
private static SimpleElasticsearchPersistentProperty createProperty(SimpleElasticsearchPersistentEntity<?> entity,
|
||||
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);
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user