コード例 #1
0
 public Integer getNbTweetsByUser(String login) {
   Long res =
       (Long)
           crudDAO.findUniqueWithNamedQuery(
               Tweet.COUNT_TWEETS_FOR_USER, QueryParameters.with("name", login).parameters());
   return res.intValue();
 }
コード例 #2
0
 public String getEmailOfTweetOwner(Long tweetId) {
   return (String)
       crudDAO.findUniqueWithNamedQuery(
           Tweet.EMAIL_ADDRESS_OF_TWEET_OWNER,
           QueryParameters.with("tweetId", Long.valueOf(tweetId)).parameters());
 }