From: Roland Häder Date: Thu, 25 Aug 2016 07:28:48 +0000 (+0200) Subject: added named query for all activity log X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7e75f9c060d04652f142993862c718a2c5047af8;p=juser-activity-core.git added named query for all activity log --- diff --git a/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java b/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java index 790c5aa..6de1a58 100644 --- a/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java +++ b/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java @@ -48,6 +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 = "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") }