From ff277743b20ae47f5dcb2dbe7406e07143800da6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 26 Apr 2016 15:51:48 +0200 Subject: [PATCH] also update created timestamp --- .../model/customer/PizzaAdminCustomerSessionBean.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java b/src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java index 511be1e..ed9e578 100644 --- a/src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java @@ -17,6 +17,7 @@ package org.mxchange.pizzaapplication.model.customer; import java.text.MessageFormat; +import java.util.GregorianCalendar; import java.util.List; import javax.ejb.EJB; import javax.ejb.Stateless; @@ -94,6 +95,9 @@ public class PizzaAdminCustomerSessionBean extends BasePizzaDatabaseBean impleme throw new ContactAlreadyAddedException(contact); } + // Set created timestamp + contact.setContactCreated(new GregorianCalendar()); + // Set all "created" timestamps this.setAllContactPhoneEntriesCreated(contact); -- 2.39.5