public class SimpleElasticsearchMappingContext extends AbstractMappingContext<SimpleElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>
Constructor and Description |
---|
SimpleElasticsearchMappingContext() |
Modifier and Type | Method and Description |
---|---|
protected <T> SimpleElasticsearchPersistentEntity<?> |
createPersistentEntity(TypeInformation<T> typeInformation) |
protected ElasticsearchPersistentProperty |
createPersistentProperty(Property property,
SimpleElasticsearchPersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder) |
void |
setFieldNamingStrategy(FieldNamingStrategy fieldNamingStrategy)
Configures the
FieldNamingStrategy to be used to determine the field name if no manual mapping is applied. |
void |
setWriteTypeHints(boolean writeTypeHints)
Sets the flag if type hints should be written in Entities created by this instance.
|
protected boolean |
shouldCreatePersistentEntityFor(TypeInformation<?> type) |
addPersistentEntity, addPersistentEntity, afterPropertiesSet, doFindPersistentPropertyPaths, findPersistentPropertyPaths, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationContext, setApplicationEventPublisher, setInitialEntitySet, setSimpleTypeHolder, setStrict
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequiredPersistentEntity, getRequiredPersistentEntity, getRequiredPersistentEntity
public void setFieldNamingStrategy(@Nullable FieldNamingStrategy fieldNamingStrategy)
FieldNamingStrategy
to be used to determine the field name if no manual mapping is applied.
Defaults to a strategy using the plain property name.fieldNamingStrategy
- the FieldNamingStrategy
to be used to determine the field name if no manual
mapping is applied.public void setWriteTypeHints(boolean writeTypeHints)
protected boolean shouldCreatePersistentEntityFor(TypeInformation<?> type)
protected <T> SimpleElasticsearchPersistentEntity<?> createPersistentEntity(TypeInformation<T> typeInformation)
createPersistentEntity
in class AbstractMappingContext<SimpleElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>
protected ElasticsearchPersistentProperty createPersistentProperty(Property property, SimpleElasticsearchPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder)
createPersistentProperty
in class AbstractMappingContext<SimpleElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.