@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SimpleOrderProxy that = (SimpleOrderProxy) o; return entity.equals(that.entity); }
@Override public void setOrderDate(LocalDate orderDate) { entity.setOrderDate(orderDate); }
@Override public LocalDate getOrderDate() { return entity.getOrderDate(); }
@Override public void setDeliveryType(DeliveryType deliveryType) { entity.setDeliveryType(deliveryType); }
@Override public LocalDate getDeliveryDate() { return entity.getDeliveryDate(); }
@Override public String getDescription() { return entity.getDescription(); }
@Override public Double getPrice() { return entity.getPrice(); }
@Override public Client getClient() { return new ClientProxy(entity.getClient()); }
@Override public String toString() { return String.valueOf(entity.getId()); }
@Override public void setPaymentDate(LocalDate paymentDate) { entity.setPaymentDate(paymentDate); }
@Override public LocalDate getPaymentDate() { return entity.getPaymentDate(); }
@Override public void setPaid(Boolean paid) { entity.setPaid(paid); }
@Override public Boolean getPaid() { return entity.getPaid(); }
@Override public void setPaymentType(PaymentType paymentType) { entity.setPaymentType(paymentType); }
@Override public PaymentType getPaymentType() { return entity.getPaymentType(); }
@Override public String getSalesPerson() { return entity.getSalesPerson(); }
@Override public void setSalesPerson(String salesPerson) { entity.setSalesPerson(salesPerson); }
@Override public int hashCode() { return entity.hashCode(); }
@Override public void setClient(Client client) { if (client instanceof EntityAware<?>) { entity.setClient(((EntityAware<ClientEntity>) client).getEntity()); } }
@Override public Integer getId() { return entity.getId(); }
@Override public void setPrice(Double price) { entity.setPrice(price); }
@Override public String getReference() { return entity.getReference(); }
@Override public void setDescription(String description) { entity.setDescription(description); }
@Override public void setReference(String reference) { entity.setReference(reference); }
@Override public void setDeliveryDate(LocalDate deliveryDate) { entity.setDeliveryDate(deliveryDate); }
@Override public DeliveryType getDeliveryType() { return entity.getDeliveryType(); }