From eed2e22a0b7aa744a1ad457c5d36c6f0e514fd89 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 28 Apr 2016 11:37:06 +0200 Subject: [PATCH] added new field as optional (nullable) --- .../model/customer/PizzaCustomer.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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; + } + } -- 2.39.5