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) |
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 of standard type in the index with the same name as this property.
|
PropertyMappingGenericFieldOptionsStep |
genericField(String relativeFieldName)
Maps the property to a field of standard type 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) |
PropertyMappingFieldOptionsStep<?> |
nonStandardField()
Maps the property to a field of non-standard type in the index with the same name as this property.
|
PropertyMappingFieldOptionsStep<?> |
nonStandardField(String relativeFieldName)
Maps the property to a field of non-standard type in the index with a custom name.
|
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.
|
PropertyMappingDocumentIdOptionsStep documentId()
This is only taken into account on Indexed types.
DocumentIdPropertyMappingStep 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()PropertyMappingFieldOptionsStep<?> nonStandardField()
This is for advanced use cases, when defining a field whose type is only supported in a specific backend.
NonStandardFieldPropertyMappingFieldOptionsStep<?> nonStandardField(String relativeFieldName)
This is for advanced use cases, when defining a field whose type is only supported in a specific backend.
relativeFieldName - The name of the index field.NonStandardField,
NonStandardField.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.