Annotation Type ExternalConversion


  • @Target(TYPE)
    @Retention(SOURCE)
    public @interface ExternalConversion
    Allows the specification of a conversion that is available via the ConversionService, but is not declared as a MapStruct mapper within the scope of the SpringMapperConfig.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class<?> sourceType  
      java.lang.Class<?> targetType  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String adapterMethodName  
    • Element Detail

      • sourceType

        java.lang.Class<?> sourceType
      • targetType

        java.lang.Class<?> targetType
      • adapterMethodName

        java.lang.String adapterMethodName
        Default:
        ""