Ejemplo n.º 1
0
  public Project Merge() {
    adaptee.setBenefits(getBenefits());
    adaptee.setAssumptions(getAssumptions());
    adaptee.setDeliverables(getDeliverables());
    adaptee.setConstraints(getConstraints());

    adaptee.setTools(arrayToString(getTools()));
    return adaptee;
  }
Ejemplo n.º 2
0
  public ProjectReadAdapter build() {
    if (adaptee == null) {
      throw new RuntimeException("Null actionPlan cannot be persisted.");
    }
    setBenefits(adaptee.getBenefits());
    setAssumptions(adaptee.getAssumptions());
    setDeliverables(adaptee.getDeliverables());
    setConstraints(adaptee.getConstraints());
    // Criado um array de Inteiros, e convertido para String

    setTools(stringToArray(adaptee.getTools()));
    return this;
  }