Annotation Type DocumentId
@Documented
@Target({METHOD,FIELD})
@Retention(RUNTIME)
@PropertyMapping(processor=@PropertyMappingAnnotationProcessorRef(type=org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.DocumentIdProcessor.class,retrieval=CONSTRUCTOR))
public @interface DocumentId
Maps a property to the identifier of documents in the index.
This annotation is only taken into account on Indexed
types.
-
Optional Element Summary
Modifier and TypeOptional ElementDescription
-
Element Details
-
identifierBridge
IdentifierBridgeRef identifierBridge- Returns:
- A reference to the identifier bridge to use for document IDs.
Must not be set if
identifierBinder()
is set. - See Also:
- Default:
@org.hibernate.search.mapper.pojo.bridge.mapping.annotation.IdentifierBridgeRef
-
identifierBinder
IdentifierBinderRef identifierBinder- Returns:
- A reference to the identifier binder to use for document IDs.
Must not be set if
identifierBridge()
is set. - See Also:
- Default:
@org.hibernate.search.mapper.pojo.bridge.mapping.annotation.IdentifierBinderRef
-