Annotation Interface GeoField
@Retention(RUNTIME)
@Target({METHOD,FIELD,TYPE})
@Documented
@Repeatable(GeoField.GeoFields.class)
@PropertyMapping(processor=@PropertyMappingAnnotationProcessorRef(type=GeoFieldProcessor.class,retrieval=CONSTRUCTOR))
public @interface GeoField
Defines a
LatLng binding from a type or a property
to a LatLng field representing a point on earth.
@GeoField can be used on a property of type LatLng:
public class User {
@GeoField
public LatLng getHome() { ... }
}
- Since:
- 15.1
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional Elements
-
Element Details
-
name
-
projectable
boolean projectable- Returns:
- Whether projections are enabled for this field.
- See Also:
- Default:
false
-
sortable
boolean sortable- Returns:
- Whether this field should be sortable.
- See Also:
- Default:
false
-