@Override public IMdoDaoBean unmarshal(IMdoDtoBean dtoBean, IMdoDaoBean... parents) { if (dtoBean == null) { return null; } TableType bean = new TableType(); TableTypeDto dto = (TableTypeDto) dtoBean; bean.setId(dto.getId()); MdoTableAsEnum code = (MdoTableAsEnum) mdoTableAsEnumsAssembler.unmarshal(dto.getCode()); bean.setCode(code); return bean; }
@Override public IMdoDtoBean marshal(IMdoDaoBean daoBean) { TableTypeDto dto = null; if (daoBean != null) { TableType bean = (TableType) daoBean; dto = new TableTypeDto(); dto.setId(bean.getId()); MdoTableAsEnumDto code = (MdoTableAsEnumDto) mdoTableAsEnumsAssembler.marshal(bean.getCode()); dto.setCode(code); } return dto; }