From: Roland Häder Date: Thu, 28 Apr 2016 09:37:06 +0000 (+0200) Subject: added new field as optional (nullable) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=eed2e22a0b7aa744a1ad457c5d36c6f0e514fd89;p=pizzaservice-core.git added new field as optional (nullable) --- diff --git a/src/org/mxchange/pizzaaplication/model/customer/PizzaCustomer.java b/src/org/mxchange/pizzaaplication/model/customer/PizzaCustomer.java index 35b9b6e..d87fdd1 100644 --- a/src/org/mxchange/pizzaaplication/model/customer/PizzaCustomer.java +++ b/src/org/mxchange/pizzaaplication/model/customer/PizzaCustomer.java @@ -112,6 +112,13 @@ public class PizzaCustomer implements Customer { @Column (name = "customer_number", nullable = false, updatable = false) private String customerNumber; + /** + * When this customer has been updated + */ + @Column (name = "customer_updated") + @Temporal (TemporalType.TIMESTAMP) + private Calendar customerUpdated; + /** * Default constructor */ @@ -261,4 +268,14 @@ public class PizzaCustomer implements Customer { throw new UnsupportedOperationException("Unfinished"); //NOI18N } + @Override + public Calendar getCustomerUpdated () { + return this.customerUpdated; + } + + @Override + public void setCustomerUpdated (final Calendar customerUpdated) { + this.customerUpdated = customerUpdated; + } + }