コード例 #1
0
  public Payment removePayment(Payment payment) {
    getPayments().remove(payment);
    payment.setStaff(null);

    return payment;
  }
コード例 #2
0
  public Payment addPayment(Payment payment) {
    getPayments().add(payment);
    payment.setStaff(this);

    return payment;
  }