public static EarnCodeGroupBo from(EarnCodeGroup im) { if (im == null) { return null; } EarnCodeGroupBo ecg = new EarnCodeGroupBo(); ecg.setHrEarnCodeGroupId(im.getHrEarnCodeGroupId()); ecg.setEarnCodeGroup(im.getEarnCodeGroup()); ecg.setDescr(im.getDescr()); ecg.setWarningText(im.getWarningText()); ecg.setEarnCodeGroups( ModelObjectUtils.transform( im.getEarnCodeGroups(), EarnCodeGroupDefinitionBo.toEarnCodeGroupDefinitionBo)); copyCommonFields(ecg, im); return ecg; }
public EarnCodeGroupBo transform(EarnCodeGroup input) { return EarnCodeGroupBo.from(input); };
public EarnCodeGroup transform(EarnCodeGroupBo input) { return EarnCodeGroupBo.to(input); };