@Override public String toString() { StringBuffer ret = new StringBuffer(); ret.append(" ProcessRunTotalDTO: id: ") .append(id) .append(" currency: ") .append(currencyDTO) .append(" totalInvoiced: ") .append(totalInvoiced) .append(" totalPaid: ") .append(totalPaid) .append(" totalNotPaid: ") .append(totalNotPaid) .append(" totalsPaymentMethod "); for (ProcessRunTotalPmDTO pm : totalsPaymentMethod) { ret.append(pm.toString()); } return ret.toString(); }
public ProcessRunTotalPmDTO create(BigDecimal total) { ProcessRunTotalPmDTO newEntity = new ProcessRunTotalPmDTO(); newEntity.setTotal(total); return save(newEntity); }