]> git.mxchange.org Git - juser-activity-core.git/commitdiff
added timestamp as this must be set in application
authorRoland Häder <roland@mxchange.org>
Thu, 25 Aug 2016 08:20:30 +0000 (10:20 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 25 Aug 2016 08:20:30 +0000 (10:20 +0200)
src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java

index 6de1a589b0b6bd0084820d23e509ab698c7409f9..97b521af29c5d95bcfb20dec18db95943f234b88 100644 (file)
@@ -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