public interface PropertyMappingContext
| Modifier and Type | Method and Description |
|---|---|
AssociationInverseSideMappingContext |
associationInverseSide(PojoModelPathValueNode inversePath)
Assuming the property represents an association on a entity type A to entity type B,
defines the inverse side of an association, i.e.
|
PropertyMappingContext |
bridge(BeanReference<? extends PropertyBridge> bridgeReference) |
PropertyMappingContext |
bridge(BridgeBuilder<? extends PropertyBridge> builder) |
PropertyMappingContext |
bridge(Class<? extends PropertyBridge> bridgeClass) |
PropertyDocumentIdMappingContext |
documentId()
Maps the property to the identifier of documents in the index.
|
PropertyFullTextFieldMappingContext |
fullTextField()
Maps the property to a full-text field in the index with the same name as this property.
|
PropertyFullTextFieldMappingContext |
fullTextField(String relativeFieldName)
Maps the property to a full-text field in the index with a custom name.
|
PropertyGenericFieldMappingContext |
genericField()
Maps the property to a field in the index with the same name as this property.
|
PropertyGenericFieldMappingContext |
genericField(String relativeFieldName)
Maps the property to a field in the index with a custom name.
|
PropertyIndexedEmbeddedMappingContext |
indexedEmbedded()
Maps the property to an object field whose fields are the same as those defined in the property type.
|
IndexingDependencyMappingContext |
indexingDependency()
Defines how a dependency of the indexing process to this property
should affect automatic reindexing.
|
PropertyKeywordFieldMappingContext |
keywordField()
Maps the property to a keyword field in the index with the same name as this property.
|
PropertyKeywordFieldMappingContext |
keywordField(String relativeFieldName)
Maps the property to a keyword field in the index with a custom name.
|
PropertyMappingContext |
marker(MarkerBuilder builder) |
PropertyMappingContext |
property(String propertyName)
Stops mapping the current property and switches to another one on the same parent type.
|
PropertyScaledNumberFieldMappingContext |
scaledNumberField()
Maps the property to a scaled number field in the index with the same name as this property.
|
PropertyScaledNumberFieldMappingContext |
scaledNumberField(String relativeFieldName)
Maps the property to a scaled number field in the index with a custom name.
|
PropertyMappingContext property(String propertyName)
propertyName - The name of another property on the same type as the current property
(not a nested property).PropertyDocumentIdMappingContext documentId()
This is only taken into account on Indexed types.
DocumentIdPropertyMappingContext bridge(Class<? extends PropertyBridge> bridgeClass)
bridgeClass - The class of the bridge to use.this, for method chaining.PropertyBridgePropertyMappingContext bridge(BeanReference<? extends PropertyBridge> bridgeReference)
bridgeReference - A BeanReference pointing to the bridge to use.
See the static "ofXXX()" methods of BeanReference for details about the various type of references
(by name, by type, ...).this, for method chaining.PropertyBridgePropertyMappingContext bridge(BridgeBuilder<? extends PropertyBridge> builder)
builder - A bridge builder.this, for method chaining.PropertyBridgePropertyMappingContext marker(MarkerBuilder builder)
builder - A marker builder.this, for method chaining.MarkerBuilder,
LatitudeMarker.Builder,
LongitudeMarker.BuilderPropertyGenericFieldMappingContext genericField()
GenericFieldPropertyGenericFieldMappingContext genericField(String relativeFieldName)
relativeFieldName - The name of the index field.GenericField,
GenericField.name()PropertyFullTextFieldMappingContext fullTextField()
FullTextFieldPropertyFullTextFieldMappingContext fullTextField(String relativeFieldName)
relativeFieldName - The name of the index field.FullTextField,
FullTextField.name()PropertyKeywordFieldMappingContext keywordField()
KeywordFieldPropertyKeywordFieldMappingContext keywordField(String relativeFieldName)
relativeFieldName - The name of the index field.KeywordField,
KeywordField.name()PropertyScaledNumberFieldMappingContext scaledNumberField()
ScaledNumberFieldPropertyScaledNumberFieldMappingContext scaledNumberField(String relativeFieldName)
relativeFieldName - The name of the index field.ScaledNumberField,
ScaledNumberField.name()PropertyIndexedEmbeddedMappingContext indexedEmbedded()
IndexedEmbeddedAssociationInverseSideMappingContext associationInverseSide(PojoModelPathValueNode inversePath)
This is generally not needed, as inverse sides of associations should generally be inferred by the mapper.
For example, Hibernate ORM defines inverse sides using @OneToMany#mappedBy, @OneToOne#mappedBy, etc.,
and the Hibernate ORM mapper will register these inverse sides automatically.
inversePath - The path representing the inverse side of the association.AssociationInverseSide,
PojoModelPath.ofValue(String),
PojoModelPath.ofValue(String, ContainerExtractorPath),
PojoModelPath.builder()IndexingDependencyMappingContext indexingDependency()
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.