public static DepartmentAffiliationBo from(DepartmentAffiliation im) {
    if (im == null) {
      return null;
    }
    DepartmentAffiliationBo da = new DepartmentAffiliationBo();
    da.setHrDeptAfflId(im.getHrDeptAfflId());
    da.setDeptAfflType(im.getDeptAfflType());
    da.setPrimaryIndicator(im.isPrimaryIndicator());

    // finally copy over the common fields into da from im
    copyCommonFields(da, im);

    return da;
  }
 public DepartmentAffiliationBo transform(DepartmentAffiliation input) {
   return DepartmentAffiliationBo.from(input);
 };
 public DepartmentAffiliation transform(DepartmentAffiliationBo input) {
   return DepartmentAffiliationBo.to(input);
 };