package ma.glasnost.orika.generated;
public class Orika_TemplateDTO_ProdConfigTemplate_Mapper26817483405686$0 extends ma.glasnost.orika.impl.GeneratedMapperBase {
public void mapAtoB(java.lang.Object a, java.lang.Object b, ma.glasnost.orika.MappingContext mappingContext) {
super.mapAtoB(a, b, mappingContext);
// sourceType: ProdConfigTemplate
cn.xyz.io.product.basic.entity.ProdConfigTemplate source = ((cn.xyz.io.product.basic.entity.ProdConfigTemplate)a);
// destinationType: TemplateDTO
cn.xyz.io.product.config.dto.TemplateDTO destination = ((cn.xyz.io.product.config.dto.TemplateDTO)b);
if ( !(((java.lang.Long)source.getCreateId()) == null)){
destination.setCreateId(((java.lang.Long)source.getCreateId()));
}
if ( !(((java.util.Date)source.getCreateTime()) == null)){
destination.setCreateTime(((java.util.Date)((ma.glasnost.orika.Converter)usedConverters[0]).convert(((java.util.Date)source.getCreateTime()), ((ma.glasnost.orika.metadata.Type)usedTypes[0]))));
}
if ( !(((java.lang.String)source.getExplanation()) == null)){
destination.setExplanation(((java.lang.String)source.getExplanation()));
}
if ( !(((java.lang.Long)source.getModifyId()) == null)){
destination.setModifyId(((java.lang.Long)source.getModifyId()));
}
if ( !(((java.util.Date)source.getModifyTime()) == null)){
destination.setModifyTime(((java.util.Date)((ma.glasnost.orika.Converter)usedConverters[0]).convert(((java.util.Date)source.getModifyTime()), ((ma.glasnost.orika.metadata.Type)usedTypes[0]))));
}
if ( !(((java.lang.String)source.getName()) == null)){
destination.setName(((java.lang.String)source.getName()));
}
if ( !(((java.lang.Long)source.getPower()) == null)){
destination.setPower(((java.lang.Long)source.getPower()));
}
if ( !(((java.lang.Integer)source.getStatus()) == null)){
destination.setStatus(((java.lang.Integer)source.getStatus()));
}
if ( !(((java.lang.Long)source.getTemplateId()) == null)){
destination.setTemplateId(((java.lang.Long)source.getTemplateId()));
}
if(customMapper != null) {
customMapper.mapAtoB(source, destination, mappingContext);
}
}
public void mapBtoA(java.lang.Object a, java.lang.Object b, ma.glasnost.orika.MappingContext mappingContext) {
super.mapBtoA(a, b, mappingContext);
// sourceType: TemplateDTO
cn.xyz.io.product.config.dto.TemplateDTO source = ((cn.xyz.io.product.config.dto.TemplateDTO)a);
// destinationType: ProdConfigTemplate
cn.xyz.io.product.basic.entity.ProdConfigTemplate destination = ((cn.xyz.io.product.basic.entity.ProdConfigTemplate)b);
if ( !(((java.lang.Long)source.getCreateId()) == null)){
destination.setCreateId(((java.lang.Long)source.getCreateId()));
}
if ( !(((java.util.Date)source.getCreateTime()) == null)){
destination.setCreateTime(((java.util.Date)((ma.glasnost.orika.Converter)usedConverters[0]).convert(((java.util.Date)source.getCreateTime()), ((ma.glasnost.orika.metadata.Type)usedTypes[0]))));
}
if ( !(((java.lang.String)source.getExplanation()) == null)){
destination.setExplanation(((java.lang.String)source.getExplanation()));
}
if ( !(((java.lang.Long)source.getModifyId()) == null)){
destination.setModifyId(((java.lang.Long)source.getModifyId()));
}
if ( !(((java.util.Date)source.getModifyTime()) == null)){
destination.setModifyTime(((java.util.Date)((ma.glasnost.orika.Converter)usedConverters[0]).convert(((java.util.Date)source.getModifyTime()), ((ma.glasnost.orika.metadata.Type)usedTypes[0]))));
}
if ( !(((java.lang.String)source.getName()) == null)){
destination.setName(((java.lang.String)source.getName()));
}
if ( !(((java.lang.Long)source.getPower()) == null)){
destination.setPower(((java.lang.Long)source.getPower()));
}
if ( !(((java.lang.Integer)source.getStatus()) == null)){
destination.setStatus(((java.lang.Integer)source.getStatus()));
}
if ( !(((java.lang.Long)source.getTemplateId()) == null)){
destination.setTemplateId(((java.lang.Long)source.getTemplateId()));
}
if(customMapper != null) {
customMapper.mapBtoA(source, destination, mappingContext);
}
}