From a797587800b68821a810fa3d833352dc272d42f7 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 1 Dec 2016 23:14:16 +0300 Subject: juick-server: fix serialization, vNext --- juick-server/src/main/java/com/juick/server/MessagesQueries.java | 4 ++-- juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'juick-server') diff --git a/juick-server/src/main/java/com/juick/server/MessagesQueries.java b/juick-server/src/main/java/com/juick/server/MessagesQueries.java index b028ec34..cac36979 100644 --- a/juick-server/src/main/java/com/juick/server/MessagesQueries.java +++ b/juick-server/src/main/java/com/juick/server/MessagesQueries.java @@ -68,14 +68,14 @@ public class MessagesQueries { msg.Place.lat = rs.getDouble(14); msg.Place.lon = rs.getDouble(15); } - msg.Likes = rs.getInt(16); + msg.setLikes(rs.getInt(16)); msg.Hidden = rs.getBoolean(17); // parse tags string String tagsStr = rs.getString(18); if (tagsStr != null) { Arrays.stream(tagsStr.split(" ")).forEach(t -> msg.getTags().add(new Tag(t))); } - msg.RepliesBy = rs.getString(19); + msg.setRepliesBy(rs.getString(19)); msg.setText(rs.getString(20)); msg.setReplyQuote(MessageUtils.formatQuote(rs.getString(21))); return msg; diff --git a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java index 537219d6..aa3e454f 100644 --- a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java +++ b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java @@ -67,14 +67,14 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ msg.Place.lat = rs.getDouble(14); msg.Place.lon = rs.getDouble(15); } - msg.Likes = rs.getInt(16); + msg.setLikes(rs.getInt(16)); msg.Hidden = rs.getBoolean(17); // parse tags string String tagsStr = rs.getString(18); if (tagsStr != null) { Arrays.stream(tagsStr.split(" ")).forEach(t -> msg.getTags().add(new Tag(t))); } - msg.RepliesBy = rs.getString(19); + msg.setRepliesBy(rs.getString(19)); msg.setText(rs.getString(20)); msg.setReplyQuote(MessageUtils.formatQuote(rs.getString(21))); return msg; -- cgit v1.2.3