Interface ConfigurableConverterExpression<S,D>

All Superinterfaces:
ReferenceMapExpression<S,D>
All Known Subinterfaces:
ConfigurableConditionExpression<S,D>, ConfigurableProviderExpression<S,D>

public interface ConfigurableConverterExpression<S,D> extends ReferenceMapExpression<S,D>
  • Method Details

    • using

      ReferenceMapExpression<S,D> using(Converter<?,?> converter)
      Uses converter to convert a source property to destination property
       
         using(converter).<String>map(Src::getCustomer, Dest::setCustomerId)
         using(ctx -> ctx.getSource().getName().toUpperCase()).<String>map(src -> src.getCustomer().getId(), Dest::setCustomerId)
       
       
      Parameters:
      converter - a converter convert source property to destination property