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
  • Constructor Details

    • ModelAttributeIdConverter

      public  ModelAttributeIdConverter()
  • Method Details

    • supports

      public  boolean  supports(Class<?> delimiter)
      Specified by:
      supports in interface  org.springframework.plugin.core.Plugin<Class<?>>
    • fromRequestId

      public  Serializable  fromRequestId(String id, Class<?> entityType)
      Specified by:
      fromRequestId in interface  org.springframework.data.rest.webmvc.spi.BackendIdConverter
    • toRequestId

      public  String  toRequestId(Serializable id, Class<?> entityType)
      Specified by:
      toRequestId in interface  org.springframework.data.rest.webmvc.spi.BackendIdConverter