org.hibernate.search.annotations

## Annotation Type DocumentId

-     @Retention(value=RUNTIME)
       @Target(value={METHOD,FIELD})
       @Documented
      public @interface DocumentId

  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

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `String` | `name`

- - ### Element Detail

    - #### name

          public abstract String name

      Default:
        ""

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved