From 87d82a83c604b81abef8766a84f1c8b6f99add59 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 9 Dec 2016 12:48:56 +0300 Subject: juick-server: fix telegram service --- juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-server/src/main/java/com/juick/service') diff --git a/juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java b/juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java index 30c0daca..89954944 100644 --- a/juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java +++ b/juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java @@ -19,7 +19,7 @@ public class TelegramServiceImpl extends BaseJdbcService implements TelegramServ super(jdbc, null); } - @Transactional(readOnly = true) + @Transactional @Override public boolean addChat(final Long id) { return getJdbcTemplate().update("INSERT IGNORE INTO telegram_chats(chat_id) VALUES(?)", id) > 0; @@ -41,7 +41,7 @@ public class TelegramServiceImpl extends BaseJdbcService implements TelegramServ return list.isEmpty() ? 0 : list.get(0); } - @Transactional(readOnly = true) + @Transactional @Override public boolean createTelegramUser(final long tgID, final String tgName) { return getJdbcTemplate().update( -- cgit v1.2.3