]> git.mxchange.org Git - jfinancials-ejb.git/commitdiff
added timestamp as the EJB should take care of it
authorRoland Haeder <roland@mxchange.org>
Tue, 19 Apr 2016 18:02:33 +0000 (20:02 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 19 Apr 2016 18:02:33 +0000 (20:02 +0200)
src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java

index 0f3124971dfbea278b39144558ca4ec3555c0b2c..4aac269e2902ed573f63791646d17f621731c15a 100644 (file)
@@ -18,6 +18,7 @@ package org.mxchange.addressbook.model.addressbook;
 
 import java.text.MessageFormat;
 import java.util.ArrayList;
+import java.util.GregorianCalendar;
 import java.util.LinkedList;
 import java.util.List;
 import javax.ejb.Stateless;
@@ -238,6 +239,9 @@ public class AddressbookSessionBean extends BaseDatabaseBean implements Addressb
                        throw new AddressbookNameAlreadyUsedException(addressbook);
                }
 
+               // Add timestamp of creation
+               addressbook.setAddressbookCreated(new GregorianCalendar());
+
                // Persist it now
                this.getEntityManager().persist(addressbook);