public static class JacksonMappingAwareSortTranslator.SortTranslator extends Object
Sort orders from Jackson-mapped field names to PersistentProperty names.| Constructor and Description |
|---|
SortTranslator(PersistentEntities persistentEntities,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
Associations associations) |
| Modifier and Type | Method and Description |
|---|---|
Sort |
translateSort(Sort input,
PersistentEntity<?,?> rootEntity)
Translates
Sort orders from Jackson-mapped field names to PersistentProperty names. |
public SortTranslator(@NonNull
PersistentEntities persistentEntities,
@NonNull
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
@NonNull
Associations associations)
public Sort translateSort(Sort input, 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–2018 Pivotal Software, Inc.. All rights reserved.