]> git.mxchange.org Git - juser-activity-core.git/commitdiff
added named query for all activity log
authorRoland Häder <roland@mxchange.org>
Thu, 25 Aug 2016 07:28:48 +0000 (09:28 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 25 Aug 2016 07:28:48 +0000 (09:28 +0200)
src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java

index 790c5aac8aa319a876c2e61bd987afe9e0c0c384..6de1a589b0b6bd0084820d23e509ab698c7409f9 100644 (file)
@@ -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")
                }