Class SortUtils
java.lang.Object
com.finconsgroup.itserr.marketplace.usercommunication.dm.util.SortUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.data.domain.SortmapSortProperty(Map<String, String> propertyMap, 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.
-
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 namesort- the original sort- Returns:
- Sort with property name mapped if necessary
-