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

index cfbe1ebe93563f99d71d15713d31424ea3f6ec45..f71bdd1297bca55428c0e5a8583f553287dadc45 100644 (file)
@@ -17,6 +17,7 @@
 package org.mxchange.jjobs.model.addressbook;
 
 import java.text.MessageFormat;
+import java.util.GregorianCalendar;
 import java.util.List;
 import javax.ejb.Stateless;
 import javax.persistence.NoResultException;
@@ -98,6 +99,9 @@ public class JobsAddressbookSessionBean extends BaseDatabaseBean implements Jobs
                        throw new AddressbookNameAlreadyUsedException(addressbook);
                }
 
+               // Add timestamp of creation
+               addressbook.setAddressbookCreated(new GregorianCalendar());
+
                // Persist it now
                this.getEntityManager().persist(addressbook);