public static class JacksonMappingAwareSortTranslator.SortTranslator extends Object
Sort
orders from Jackson-mapped field names to PersistentProperty
names.Constructor and Description |
---|
SortTranslator() |
Modifier and Type | Method and Description |
---|---|
org.springframework.data.domain.Sort |
translateSort(org.springframework.data.domain.Sort input,
org.springframework.data.mapping.PersistentEntity<?,?> rootEntity)
Translates
Sort orders from Jackson-mapped field names to PersistentProperty names. |
public org.springframework.data.domain.Sort translateSort(org.springframework.data.domain.Sort input, org.springframework.data.mapping.PersistentEntity<?,?> rootEntity)
Sort
orders from Jackson-mapped field names to PersistentProperty
names. Properties
that cannot be resolved are dropped.input
- must not be null.rootEntity
- must not be null.Sort
with translated field names or null if translation dropped all sort fields.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.