Annotation Interface Searchable


@Retention(CLASS) public @interface Searchable
Marks a field as searchable and optionally restricts the allowed operators. The annotation is processed at compile time by the CrudCraft annotation processor to generate type safe search helpers. It is not retained at runtime.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Optional search depth when the annotation is applied on an entity class.
    The set of allowed operators for this field.
  • Element Details

    • operators

      SearchOperator[] operators
      The set of allowed operators for this field. When empty a default set based on the field type is used by the code generator.
      Default:
      {}
    • depth

      int depth
      Optional search depth when the annotation is applied on an entity class. When omitted the global configuration is used.
      Default:
      1