Package org.hibernate.search.annotations
Annotation Type DateBridge
-
@Retention(RUNTIME) @Target({FIELD,METHOD}) @Documented @Deprecated public @interface DateBridge
Deprecated.DateBridge/CalendarBridgeare no longer available in Hibernate Search 6. If you cannot move your properties to Java 8 date/time types, implement your own bridge and apply it withGenericField.valueBridge(). If you can move your properties to Java 8 date/time types, do so, remove this annotation and replaceFieldwithGenericField. Then, either use a Java type with the appropriate resolution (LocalDate, ...) andmatchpredicates, or use a type with more resolution than necessary but rely on range predicates (e.g.f.range().field("myField").between(LocalDate.now().atStartOfDay(), LocalDate.now().plusDays(1).atStartOfDay())for a "day" resolution on aLocalDateTimefield).Defines the temporal resolution and encoding type of ajava.util.Datefield.Note: Dates are encoded in the GMT/UTC time zone.
- Author:
- Emmanuel Bernard
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description ResolutionresolutionDeprecated.
-
-
-
Element Detail
-
resolution
Resolution resolution
Deprecated.- Returns:
- the resolution for the annotated date. The date will be rounded to the specified resolution.
-
-