From: Roland Haeder Date: Tue, 12 Apr 2016 16:12:44 +0000 (+0200) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=80e100987bfb355cb4da3f313c7acdbea694cb52;p=jjobs-ejb.git Continued a bit: - added registration timestamp for user and contact instance - updated jar(s) --- diff --git a/lib/jcontacts-core.jar b/lib/jcontacts-core.jar index b94b468..356a84c 100644 Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ diff --git a/lib/jphone-core.jar b/lib/jphone-core.jar index 1965d51..f3842ac 100644 Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ diff --git a/lib/juser-lib.jar b/lib/juser-lib.jar index 77cab45..cbd7958 100644 Binary files a/lib/juser-lib.jar and b/lib/juser-lib.jar differ diff --git a/src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java b/src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java index e20abb9..07c14f8 100644 --- a/src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java @@ -17,6 +17,7 @@ package org.mxchange.jusercore.model.register; import java.text.MessageFormat; +import java.util.GregorianCalendar; import javax.ejb.EJB; import javax.ejb.Stateless; import org.mxchange.jcoreee.database.BaseDatabaseBean; @@ -100,6 +101,10 @@ public class JobsUserRegistrationSessionBean extends BaseDatabaseBean implements throw new EmailAddressAlreadyRegisteredException(user); } + // Set created timestamp + user.setUserCreated(new GregorianCalendar()); + user.getUserContact().setContactCreated(new GregorianCalendar()); + // Persist it this.getEntityManager().persist(user);