Package cn.sparrow.common.idconverter
Class ModelAttributeIdConverter
java.lang.Object
cn.sparrow.common.idconverter.ModelAttributeIdConverter
- All Implemented Interfaces:
org.springframework.data.rest.webmvc.spi.BackendIdConverter
,org.springframework.plugin.core.Plugin<Class<?>>
@Component public class ModelAttributeIdConverterextends Object implements org.springframework.data.rest.webmvc.spi.BackendIdConverter
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.rest.webmvc.spi.BackendIdConverter
org.springframework.data.rest.webmvc.spi.BackendIdConverter.DefaultIdConverter
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionfromRequestId(String id, Class<?> entityType)
boolean
toRequestId(Serializable id, Class<?> entityType)
Constructor Details
ModelAttributeIdConverter
public ModelAttributeIdConverter()
Method Details
supports
- Specified by:
supports
in interfaceorg.springframework.plugin.core.Plugin<Class<?>>
fromRequestId
- Specified by:
fromRequestId
in interfaceorg.springframework.data.rest.webmvc.spi.BackendIdConverter
toRequestId
- Specified by:
toRequestId
in interfaceorg.springframework.data.rest.webmvc.spi.BackendIdConverter