]> git.mxchange.org Git - pizzaservice-core.git/commitdiff
added new field as optional (nullable)
authorRoland Häder <roland@mxchange.org>
Thu, 28 Apr 2016 09:37:06 +0000 (11:37 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 28 Apr 2016 17:25:48 +0000 (19:25 +0200)
src/org/mxchange/pizzaaplication/model/customer/PizzaCustomer.java

index 35b9b6e3980d9402d65e349ccc407a48391791cb..d87fdd16b43807addf2e18f5facc4f51b82da6a5 100644 (file)
@@ -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;
+       }
+
 }