From: Roland Häder Date: Tue, 26 Apr 2016 13:51:48 +0000 (+0200) Subject: also update created timestamp X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ff277743b20ae47f5dcb2dbe7406e07143800da6;p=pizzaservice-ejb.git also update created timestamp --- 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);