)
@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")
}
* @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