org.hibernate.search.annotations

## Annotation Type CalendarBridge

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

  Defines the temporal resolution and encoding type of a `Calendar` field.

  Note: Dates are encoded in the GMT/UTC time zone.

  Author:
    Amin Mohammed-Coleman

- - ### Required Element Summary

    Required Elements
    Modifier and Type | Required Element and Description
    --- | ---
    `Resolution` | `resolution`

  - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `EncodingType` | `encoding`

- - ### Element Detail

    - #### resolution

          public abstract Resolution resolution

      Returns:
        the resolution for the annotated `Calendar` instance. The date of the calendar will be rounded to the specified resolution.

  - - #### encoding

          public abstract EncodingType encoding

      Returns:
        the encoding type for the annotated `Calendar` instance.
      Default:
        org.hibernate.search.annotations.EncodingType.NUMERIC

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