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:
Mark Paluch 2017-04-24 10:33:45 +02:00
parent 05a0186d1e
commit 312df33c31
2 changed files with 2 additions and 2 deletions

View File

@ -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_PREFIX = "geohash_prefix";
public static final String TYPE_VALUE_GEO_HASH_PRECISION = "geohash_precision"; 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 { static XContentBuilder buildMapping(Class clazz, String indexType, String idFieldName, String parentType) throws IOException {

View File

@ -67,7 +67,7 @@ public class SimpleElasticsearchPersistentEntityTests {
String field) { String field) {
Property property = Property.of(ReflectionUtils.findField(entity.getTypeInformation().getType(), 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);
} }