From 47338f9e386667293a25d1e51b34002c2ae8aa3c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 25 Aug 2016 10:20:30 +0200 Subject: [PATCH] added timestamp as this must be set in application --- .../jusercore/model/user/activity/UserActivityLog.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java b/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java index 6de1a58..97b521a 100644 --- a/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java +++ b/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java @@ -48,7 +48,7 @@ import org.mxchange.jusercore.model.user.User; ) @NamedQueries ( { - @NamedQuery(name = "AllUserActivityLog", query = "SELECT a FROM user_activity_log AS a ORDER BY a.activityId DESC"), + @NamedQuery (name = "AllUserActivityLog", query = "SELECT a FROM user_activity_log AS a ORDER BY a.activityId DESC"), @NamedQuery (name = "FindAllUsersActivity", query = "SELECT a FROM user_activity_log AS a WHERE a.activityUser = :activityUser ORDER BY a.activityId DESC"), @NamedQuery (name = "FindUsersActivityByType", query = "SELECT a FROM user_activity_log AS a WHERE a.activityUser = :activityUser AND a.activityType LIKE :activityType ORDER BY a.activityId DESC") } @@ -111,11 +111,13 @@ public class UserActivityLog implements LogableUserActivity { * @param activityMessage Message * @param activityType Type * @param activityUser User instance + * @param activityTimestamp imestamp */ - public UserActivityLog (final String activityMessage, final String activityType, final User activityUser) { + public UserActivityLog (final String activityMessage, final String activityType, final User activityUser, final Calendar activityTimestamp) { this.activityMessage = activityMessage; this.activityType = activityType; this.activityUser = activityUser; + this.activityTimestamp = activityTimestamp; } @Override -- 2.39.5