public static class DataSearchDefaultAliasConfigurerAutoConfiguration.DefaultAliasResolver implements AliasResolver
Default Alias Resolver that create a new alias for all fields ending with 'Entity' or 'Entities'.
The resolved alias is the field name without 'Entity' and 'Entities'.
public static com.weedow.spring.data.search.autoconfigure.DataSearchDefaultAliasConfigurerAutoConfiguration.DefaultAliasResolver.Companion Companion
public DefaultAliasResolver()
Default Alias Resolver that create a new alias for all fields ending with 'Entity' or 'Entities'.
The resolved alias is the field name without 'Entity' and 'Entities'.
public boolean supports(@NotNull java.lang.Class<?> entityClass, @NotNull java.lang.reflect.Field field)
entityClass
- The Class that the interface AliasResolver
can being asked if it can resolve
aliasesfield
- The Field that the interface AliasResolver
can being asked if it can resolve
aliasestrue
if the AliasResolver can resolve
aliasesresolve
,
resolve
@NotNull public java.util.List<java.lang.String> resolve(@NotNull java.lang.Class<?> entityClass, @NotNull java.lang.reflect.Field field)
Resolve the aliases for the given entityClass and given Field.
entityClass
- The Class that the interface AliasResolver
uses to resolve the related aliasesfield
- The Field that the interface AliasResolver
uses to resolve the related aliases