Skip to content
Snippets Groups Projects

Add customization for the ModelMapper

5 files
+ 26
5
Compare changes
  • Side-by-side
  • Inline

Files

@@ -33,7 +33,8 @@ public abstract class Create<D> extends GenericCreate<D> {
throw new CreateException(errors);
}
D data = new ModelMapper().map(this, clazz());
ModelMapper mapper = createMapper();
D data = mapper.map(this, clazz());
postApply(data);
return data;
Loading