]> git.mxchange.org Git - pizzaservice-ejb.git/blobdiff - src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java
also update created timestamp
[pizzaservice-ejb.git] / src / java / org / mxchange / pizzaapplication / model / customer / PizzaAdminCustomerSessionBean.java
index 511be1e7dbae9b541cd094ab4148c6b74d90fbaf..ed9e57834de05a8380dc23109ed1930dfc9fc227 100644 (file)
@@ -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);