use of org.modelmapper.ModelMapper in project catalogo-strumenti by istat-methodology.
the class Translators method translateUpdate.
public static SoftwareProcedure translateUpdate(CreateSoftwareProcedureRequest x, SoftwareProcedure sp) {
final ModelMapper modelMapper = new ModelMapper();
modelMapper.map(x, sp);
return sp;
}
use of org.modelmapper.ModelMapper in project catalogo-strumenti by istat-methodology.
the class Translators method translateUpdate.
public static StatisticalMethod translateUpdate(CreateStatisticalMethodRequest x, StatisticalMethod sm) {
final ModelMapper modelMapper = new ModelMapper();
modelMapper.map(x, sm);
return sm;
}
use of org.modelmapper.ModelMapper in project catalogo-strumenti by istat-methodology.
the class Translators method translateUpdate.
public static CatalogTool translateUpdate(UpdateToolRequest x, CatalogTool tool) {
final ModelMapper modelMapper = new ModelMapper();
modelMapper.map(x, tool);
return tool;
}
use of org.modelmapper.ModelMapper in project catalogo-strumenti by istat-methodology.
the class Translators method translateUpdate.
public static DesktopApplication translateUpdate(CreateDesktopApplicationRequest x, DesktopApplication da) {
final ModelMapper modelMapper = new ModelMapper();
modelMapper.map(x, da);
return da;
}
use of org.modelmapper.ModelMapper in project catalogo-strumenti by istat-methodology.
the class Translators method translate.
public static UsersEntity translate(CreateUserRequest x) {
final ModelMapper modelMapper = new ModelMapper();
final UsersEntity user = modelMapper.map(x, UsersEntity.class);
return user;
}
Aggregations