Annotation Type FilterAndSortAlias


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface FilterAndSortAlias

    Marker on a repository instance that allows Sort and RSQL filter requests to be targeted via an alias rather than the property itself. Example:

     @Document
     public class SomeEntity {
       
       @FilterAndSortAlias("id")
       String contextId;
     }
     

    This allows Sort and RSQL filter requests to key off of id in addition to contextId

    Author:
    Phillip Verheyden (phillipuniverse)
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String[] value