Annotation Type IndexedEmbedded
-
@Retention(RUNTIME) @Target({FIELD,METHOD}) @Documented @Deprecated @PropertyMapping(processor=@PropertyMappingAnnotationProcessorRef(type=org.hibernate.search.annotations.impl.IndexedEmbeddedAnnotationProcessor.class,retrieval=CONSTRUCTOR)) public @interface IndexedEmbedded
Deprecated.Use Hibernate Search 6'sIndexedEmbeddedinstead.Specifies that an association (@*To*,@Embedded,@CollectionOfEmbedded) is to be indexed in the root entity index. This allows queries involving associated objects properties.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description intdepthDeprecated.Stop indexing embedded elements whendepthis reached.booleanincludeEmbeddedObjectIdDeprecated.Returnstrue, if the id of the embedded object should be included into the index,falseotherwise.String[]includePathsDeprecated.List which paths of the object graph should be included in the index, and need to match the field names used to store them in the index, so they will also match the field names used to specify full text queries.StringprefixDeprecated.Field name prefix.Class<?>targetElementDeprecated.Overrides the target type of an association, in case a collection overrides the type of the collection generics.
-
-
-
Element Detail
-
prefix
String prefix
Deprecated.Field name prefix.- Returns:
- the field name prefix. Default to ".", indicating that
propertyname.will be used.
- Default:
- "."
-
-
-
includePaths
String[] includePaths
Deprecated.List which paths of the object graph should be included in the index, and need to match the field names used to store them in the index, so they will also match the field names used to specify full text queries.
Defined paths are going to be indexed even if they exceed the
depththreshold. WhenincludePathsis not empty, the default value fordepthis 0.Defined paths are implicitly prefixed with the
prefix().- Returns:
- the paths to include. Default to empty array
- Default:
- {}
-
-
-
depth
int depth
Deprecated.Stop indexing embedded elements whendepthis reached.depth=1means the associated element is indexed, but not its embedded elements.The default value depends on the value of the
includePathsattribute: if no paths are defined, the default isInteger.MAX_VALUE; if anyincludePathsare defined, the defaultdepthis interpreted as 0 if not specified to a different value than it's default.Note that when defining any path to the
includePathsattribute the default is zero also when explicitly set toInteger.MAX_VALUE.- Returns:
- the depth size. Default value is
Integer.MAX_VALUE
- Default:
- 2147483647
-
-
-
targetElement
Class<?> targetElement
Deprecated.Overrides the target type of an association, in case a collection overrides the type of the collection generics.- Returns:
- the target type of the association. Default to
void.class
- Default:
- void.class
-
-
-
includeEmbeddedObjectId
boolean includeEmbeddedObjectId
Deprecated.Returnstrue, if the id of the embedded object should be included into the index,falseotherwise. The default isfalse.Note
: If the id property is explicitly listed viaincludePaths(), then the id is included even if this value isfalse.- Returns:
- Returns
true, if the id of the embedded object should be included into the index,falseotherwise.
- Default:
- false
-
-