mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-22 03:52:10 +00:00
DATAES-350 - Adapt to SimpleTypeHolder changes in Spring Data Commons.
Replace constructor usage with singleton instance. Related Ticket: DATAES-350.
This commit is contained in:
parent
05a0186d1e
commit
312df33c31
@ -72,7 +72,7 @@ class MappingBuilder {
|
||||
public static final String TYPE_VALUE_GEO_HASH_PREFIX = "geohash_prefix";
|
||||
public static final String TYPE_VALUE_GEO_HASH_PRECISION = "geohash_precision";
|
||||
|
||||
private static SimpleTypeHolder SIMPLE_TYPE_HOLDER = new SimpleTypeHolder();
|
||||
private static SimpleTypeHolder SIMPLE_TYPE_HOLDER = SimpleTypeHolder.DEFAULT;
|
||||
|
||||
static XContentBuilder buildMapping(Class clazz, String indexType, String idFieldName, String parentType) throws IOException {
|
||||
|
||||
|
@ -67,7 +67,7 @@ public class SimpleElasticsearchPersistentEntityTests {
|
||||
String field) {
|
||||
|
||||
Property property = Property.of(ReflectionUtils.findField(entity.getTypeInformation().getType(), field));
|
||||
return new SimpleElasticsearchPersistentProperty(property, entity, new SimpleTypeHolder());
|
||||
return new SimpleElasticsearchPersistentProperty(property, entity, SimpleTypeHolder.DEFAULT);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user