Annotation Type PropertyValue
-
@Documented @Target({}) @Retention(RUNTIME) public @interface PropertyValue
A reference to a POJO property using its name, and to one or more target value(s) in that property using aContainerExtraction
.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description String
propertyName
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description ContainerExtraction
extraction
-
-
-
Element Detail
-
propertyName
String propertyName
- Returns:
- The name of the referenced property.
-
-
-
extraction
ContainerExtraction extraction
- Returns:
- A definition of container extractors to be applied to the property,
allowing the binding of a value bridge to container elements.
This is useful when the property is of container type,
for example a
Map<TypeA, TypeB>
: defining the extraction as@ContainerExtraction(BuiltinContainerExtractors.MAP_KEY)
allows referencing map keys instead of map values. By default, Hibernate Search will try to apply a set of extractors for common container types. - See Also:
ContainerExtraction
- Default:
- @org.hibernate.search.mapper.pojo.extractor.mapping.annotation.ContainerExtraction
-
-