From 71cdb034f1f1218874d46cb57adac02d60793050 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Mon, 2 Jun 2014 11:32:39 +0200 Subject: Replace reply(user)id by replytweetid --- src/data/Tweet.java | 2 +- src/database/QueryUtils.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/data/Tweet.java b/src/data/Tweet.java index 2e1a1f1..d9b1de0 100644 --- a/src/data/Tweet.java +++ b/src/data/Tweet.java @@ -11,7 +11,7 @@ public class Tweet { @ValidatingJsonDeserializer.Nullable public String lang; @ValidatingJsonDeserializer.Nullable - public Long in_reply_to_user_id; + public Long in_reply_to_status_id; public DateTime created_at; public int favorite_count; @ValidatingJsonDeserializer.Nullable diff --git a/src/database/QueryUtils.java b/src/database/QueryUtils.java index dac3ffc..4af6c09 100644 --- a/src/database/QueryUtils.java +++ b/src/database/QueryUtils.java @@ -22,7 +22,7 @@ public class QueryUtils { = buildQuery("tweet", new String[]{"tweetid"}, "tweetid", "createdat::timestamptz", "favcount", "retweetcount", "text", "coordinates::point", - "language", "retweetid", "replyid", "place", + "language", "retweetid", "replytweetid", "place", "userid"); public final static String insertHash @@ -113,10 +113,10 @@ public class QueryUtils { } else { tweetStatement.setLong("retweetid", null); } - if (tweet.in_reply_to_user_id != null) { - tweetStatement.setLong("replyid", tweet.in_reply_to_user_id); + if (tweet.in_reply_to_status_id != null) { + tweetStatement.setLong("replytweetid", tweet.in_reply_to_status_id); } else { - tweetStatement.setLong("replyid", null); + tweetStatement.setLong("replytweetid", null); } // TODO: place is not a string... if (tweet.place != null) { -- cgit v1.2.1