]> git.mxchange.org Git - pizzaservice-ejb.git/commitdiff
also update created timestamp
authorRoland Häder <roland@mxchange.org>
Tue, 26 Apr 2016 13:51:48 +0000 (15:51 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 27 Apr 2016 19:07:23 +0000 (21:07 +0200)
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;
 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;
 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);
                }
 
                        throw new ContactAlreadyAddedException(contact);
                }
 
+               // Set created timestamp
+               contact.setContactCreated(new GregorianCalendar());
+
                // Set all "created" timestamps
                this.setAllContactPhoneEntriesCreated(contact);
 
                // Set all "created" timestamps
                this.setAllContactPhoneEntriesCreated(contact);