java.lang.Object
com.finconsgroup.itserr.marketplace.usercommunication.dm.util.SortUtils

public final class SortUtils extends Object
  • Constructor Details

    • SortUtils

      public SortUtils()
  • Method Details

    • mapSortProperty

      @NonNull public static org.springframework.data.domain.Sort mapSortProperty(@Nullable Map<String,String> propertyMap, @NonNull org.springframework.data.domain.Sort sort)
      Maps the sort property name to the name that can be used to sort the entities and returns the new sort.
      Parameters:
      propertyMap - the map containing name that should be used for queries instead of the property name
      sort - the original sort
      Returns:
      Sort with property name mapped if necessary