public interface PropertyMappingStep
| Modifier and Type | Method and Description |
|---|---|
AssociationInverseSideOptionsStep |
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.
|
PropertyMappingStep |
binder(PropertyBinder<?> binder) |
PropertyMappingStep |
bridge(BeanReference<? extends PropertyBridge> bridgeReference) |
PropertyMappingStep |
bridge(Class<? extends PropertyBridge> bridgeClass) |
PropertyMappingDocumentIdOptionsStep |
documentId()
Maps the property to the identifier of documents in the index.
|
PropertyMappingFullTextFieldOptionsStep |
fullTextField()
Maps the property to a full-text field in the index with the same name as this property.
|
PropertyMappingFullTextFieldOptionsStep |
fullTextField(String relativeFieldName)
Maps the property to a full-text field in the index with a custom name.
|
PropertyMappingGenericFieldOptionsStep |
genericField()
Maps the property to a field in the index with the same name as this property.
|
PropertyMappingGenericFieldOptionsStep |
genericField(String relativeFieldName)
Maps the property to a field in the index with a custom name.
|
PropertyMappingIndexedEmbeddedStep |
indexedEmbedded()
Maps the property to an object field whose fields are the same as those defined in the property type.
|
IndexingDependencyOptionsStep |
indexingDependency()
Defines how a dependency of the indexing process to this property
should affect automatic reindexing.
|
PropertyMappingKeywordFieldOptionsStep |
keywordField()
Maps the property to a keyword field in the index with the same name as this property.
|
PropertyMappingKeywordFieldOptionsStep |
keywordField(String relativeFieldName)
Maps the property to a keyword field in the index with a custom name.
|
PropertyMappingStep |
marker(MarkerBinder<?> binder) |
PropertyMappingStep |
property(String propertyName)
Stops mapping the current property and switches to another one on the same parent type.
|
PropertyMappingScaledNumberFieldOptionsStep |
scaledNumberField()
Maps the property to a scaled number field in the index with the same name as this property.
|
PropertyMappingScaledNumberFieldOptionsStep |
scaledNumberField(String relativeFieldName)
Maps the property to a scaled number field in the index with a custom name.
|
PropertyMappingStep property(String propertyName)
propertyName - The name of another property on the same type as the current property
(not a nested property).PropertyMappingDocumentIdOptionsStep documentId()
This is only taken into account on Indexed types.
DocumentIdPropertyMappingStep bridge(Class<? extends PropertyBridge> bridgeClass)
bridgeClass - The class of the bridge to use.this, for method chaining.PropertyBridgePropertyMappingStep 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.PropertyBridgePropertyMappingStep binder(PropertyBinder<?> binder)
binder - A PropertyBinder responsible for creating a bridge.this, for method chaining.PropertyBinderPropertyMappingStep marker(MarkerBinder<?> binder)
binder - A MarkerBinder responsible for creating a marker object.this, for method chaining.MarkerBinder,
GeoPointBinder.latitude(),
GeoPointBinder.longitude()PropertyMappingGenericFieldOptionsStep genericField()
GenericFieldPropertyMappingGenericFieldOptionsStep genericField(String relativeFieldName)
relativeFieldName - The name of the index field.GenericField,
GenericField.name()PropertyMappingFullTextFieldOptionsStep fullTextField()
FullTextFieldPropertyMappingFullTextFieldOptionsStep fullTextField(String relativeFieldName)
relativeFieldName - The name of the index field.FullTextField,
FullTextField.name()PropertyMappingKeywordFieldOptionsStep keywordField()
KeywordFieldPropertyMappingKeywordFieldOptionsStep keywordField(String relativeFieldName)
relativeFieldName - The name of the index field.KeywordField,
KeywordField.name()PropertyMappingScaledNumberFieldOptionsStep scaledNumberField()
ScaledNumberFieldPropertyMappingScaledNumberFieldOptionsStep scaledNumberField(String relativeFieldName)
relativeFieldName - The name of the index field.ScaledNumberField,
ScaledNumberField.name()PropertyMappingIndexedEmbeddedStep indexedEmbedded()
IndexedEmbeddedAssociationInverseSideOptionsStep 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()IndexingDependencyOptionsStep indexingDependency()
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.