Package org.hibernate.search.annotations
Annotation Type DocumentId
-
@Retention(RUNTIME) @Target({METHOD,FIELD}) @Documented @Deprecated @PropertyMapping(processor=@PropertyMappingAnnotationProcessorRef(type=org.hibernate.search.annotations.impl.DocumentIdAnnotationProcessor.class)) public @interface DocumentId
Deprecated.Use Hibernate Search 6'sDocumentIdinstead.Declare a field as the document id. If set to a property, the property will be used TODO: If set to a class, the class itself will be passed to the FieldBridge Note that @{link org.hibernate.search.bridge.FieldBridge#get} must return the Entity id- Author:
- Emmanuel Bernard