|
35 | 35 | } |
36 | 36 | ) |
37 | 37 | @NamedQueries({ |
38 | | - @NamedQuery( |
39 | | - name = "User.findTweetingUsers", |
40 | | - query = "select t from User as t where t.taskInfo.fetchTweetsFromSearch=true" |
41 | | - ), |
42 | | - @NamedQuery( |
43 | | - name = "User.findFollower", |
44 | | - query = "select t from User as t where t.taskInfo.fetchFollower=true" |
45 | | - ), |
46 | | - @NamedQuery( |
47 | | - name = "User.findNotYetFollower", |
48 | | - query = "select t from User as t where t.taskInfo.fetchFollower=false" |
49 | | - ), |
50 | | - @NamedQuery( |
51 | | - name = "User.findFriends", |
52 | | - query = "select t from User as t where t.taskInfo.fetchFriends=true" |
53 | | - ), |
54 | | - @NamedQuery( |
55 | | - name = "User.findNotYetFriends", |
56 | | - query = "select t from User as t where t.taskInfo.fetchFriends=false" |
57 | | - ), |
58 | | - @NamedQuery( |
59 | | - name = "User.findOnList", |
60 | | - query = "select t from User as t where t.taskInfo.fetchUsersFromList=true" |
61 | | - ), |
62 | | - @NamedQuery( |
63 | | - name = "User.findNotYetOnList", |
64 | | - query = "select t from User as t where t.taskInfo.fetchUsersFromList=false and t.taskInfo.fetchTweetsFromSearch=true" |
65 | | - ), |
66 | | - @NamedQuery( |
67 | | - name="User.getUsersForHashTag", |
68 | | - query="select t from User as t join t.entities.hashTags hashTag WHERE hashTag.text=:hashtagText" |
69 | | - ), |
70 | | - @NamedQuery( |
71 | | - name="User.countUsersForHashTag", |
72 | | - query="select count(t) from User as t join t.entities.hashTags hashTag WHERE hashTag.text=:hashtagText" |
73 | | - ), |
74 | | - @NamedQuery( |
75 | | - name = "User.findAllDescriptions", |
76 | | - query = "select t.description from User as t where t.description is not null" |
77 | | - ), |
78 | | - @NamedQuery( |
79 | | - name="User.findByUniqueId", |
80 | | - query="select t from User as t where t.idTwitter=:idTwitter and t.screenNameUnique=:screenNameUnique" |
81 | | - ), |
82 | | - @NamedQuery( |
83 | | - name="User.findUsersWhoAreFriendsButNotFollowers", |
84 | | - query="select t from User as t where t.taskInfo.fetchFollower=false and t.taskInfo.fetchFriends=true" |
85 | | - ), |
86 | | - @NamedQuery( |
87 | | - name="User.findUsersWhoAreFollowersAndFriends", |
88 | | - query="select t from User as t where t.taskInfo.fetchFollower=true and t.taskInfo.fetchFriends=true" |
89 | | - ), |
90 | | - @NamedQuery( |
91 | | - name="User.findUsersWhoAreFollowersButNotFriends", |
92 | | - query="select t from User as t where t.taskInfo.fetchFollower=true and t.taskInfo.fetchFriends=false" |
93 | | - ) |
| 38 | + @NamedQuery( |
| 39 | + name = "User.findTweetingUsers", |
| 40 | + query = "select t from User as t where t.taskInfo.fetchTweetsFromSearch=true" |
| 41 | + ), |
| 42 | + @NamedQuery( |
| 43 | + name = "User.findFollower", |
| 44 | + query = "select t from User as t where t.taskInfo.fetchFollower=true" |
| 45 | + ), |
| 46 | + @NamedQuery( |
| 47 | + name = "User.findNotYetFollower", |
| 48 | + query = "select t from User as t where t.taskInfo.fetchFollower=false" |
| 49 | + ), |
| 50 | + @NamedQuery( |
| 51 | + name = "User.findFriends", |
| 52 | + query = "select t from User as t where t.taskInfo.fetchFriends=true" |
| 53 | + ), |
| 54 | + @NamedQuery( |
| 55 | + name = "User.findNotYetFriends", |
| 56 | + query = "select t from User as t where t.taskInfo.fetchFriends=false" |
| 57 | + ), |
| 58 | + @NamedQuery( |
| 59 | + name = "User.findOnList", |
| 60 | + query = "select t from User as t where t.taskInfo.fetchUsersFromList=true" |
| 61 | + ), |
| 62 | + @NamedQuery( |
| 63 | + name = "User.findNotYetOnList", |
| 64 | + query = "select t from User as t where t.taskInfo.fetchUsersFromList=false and t.taskInfo.fetchTweetsFromSearch=true" |
| 65 | + ), |
| 66 | + @NamedQuery( |
| 67 | + name="User.getUsersForHashTag", |
| 68 | + query="select t from User as t join t.entities.hashTags hashTag WHERE hashTag.text=:hashtagText" |
| 69 | + ), |
| 70 | + @NamedQuery( |
| 71 | + name="User.countUsersForHashTag", |
| 72 | + query="select count(t) from User as t join t.entities.hashTags hashTag WHERE hashTag.text=:hashtagText" |
| 73 | + ), |
| 74 | + @NamedQuery( |
| 75 | + name = "User.findAllDescriptions", |
| 76 | + query = "select t.description from User as t where t.description is not null" |
| 77 | + ), |
| 78 | + @NamedQuery( |
| 79 | + name="User.findByUniqueId", |
| 80 | + query="select t from User as t where t.idTwitter=:idTwitter and t.screenNameUnique=:screenNameUnique" |
| 81 | + ), |
| 82 | + @NamedQuery( |
| 83 | + name="User.findUsersWhoAreFriendsButNotFollowers", |
| 84 | + query="select t from User as t where t.taskInfo.fetchFollower=false and t.taskInfo.fetchFriends=true" |
| 85 | + ), |
| 86 | + @NamedQuery( |
| 87 | + name="User.findUsersWhoAreFollowersAndFriends", |
| 88 | + query="select t from User as t where t.taskInfo.fetchFollower=true and t.taskInfo.fetchFriends=true" |
| 89 | + ), |
| 90 | + @NamedQuery( |
| 91 | + name="User.findUsersWhoAreFollowersButNotFriends", |
| 92 | + query="select t from User as t where t.taskInfo.fetchFollower=true and t.taskInfo.fetchFriends=false" |
| 93 | + ) |
94 | 94 | }) |
95 | 95 | @NamedNativeQueries({ |
96 | 96 | @NamedNativeQuery( |
|
0 commit comments