public class SimpleElasticsearchMappingContext extends org.springframework.data.mapping.context.AbstractMappingContext<SimpleElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>
| Constructor and Description |
|---|
SimpleElasticsearchMappingContext() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> SimpleElasticsearchPersistentEntity<?> |
createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) |
protected ElasticsearchPersistentProperty |
createPersistentProperty(org.springframework.data.mapping.model.Property property,
SimpleElasticsearchPersistentEntity<?> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) |
void |
setFieldNamingStrategy(org.springframework.data.mapping.model.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(org.springframework.data.util.TypeInformation<?> type) |
addPersistentEntity, addPersistentEntity, afterPropertiesSet, doFindPersistentPropertyPaths, findPersistentPropertyPaths, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationContext, setApplicationEventPublisher, setInitialEntitySet, setSimpleTypeHolder, setStrictpublic void setFieldNamingStrategy(@Nullable org.springframework.data.mapping.model.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(org.springframework.data.util.TypeInformation<?> type)
shouldCreatePersistentEntityFor in class org.springframework.data.mapping.context.AbstractMappingContext<SimpleElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>protected <T> SimpleElasticsearchPersistentEntity<?> createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
createPersistentEntity in class org.springframework.data.mapping.context.AbstractMappingContext<SimpleElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>protected ElasticsearchPersistentProperty createPersistentProperty(org.springframework.data.mapping.model.Property property, SimpleElasticsearchPersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
createPersistentProperty in class org.springframework.data.mapping.context.AbstractMappingContext<SimpleElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.