Hi Alex,
Sorry for the slow response on this. The right approach would be using a Converter on the property, something like this:
Converter<String, String> c = new Converter<String, String>() {
public String convert(MappingContext<String, String> context) {
Src src = (Src) context.getParent().getSource();
return src.a + src.b;
}
};
using(c).map().setC(null);
Here we're using the Converter on a property (c) but we want to access the values of some other properties in the parent object. For this we can access the parent mapping context to get the parent source object, then concatenate the properties. I just added getParent() to the API for MappingContext to make this work.
Cheers,
Jonathan