From 051ea721a15ff7f5381acc8bb1e6c93cc257697a Mon Sep 17 00:00:00 2001 From: Anatoliy Sablin Date: Mon, 20 Aug 2018 07:11:08 +0300 Subject: [PATCH] Increase columns length of the formats. --- pom.xml | 2 +- .../ma1uta/mxtoot/matrix/MxTootConfig.java | 19 +++++++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 4879cfd..3549b28 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ io.github.ma1uta mxtoot - 0.4.6 + 0.4.7 UTF-8 diff --git a/src/main/java/io/github/ma1uta/mxtoot/matrix/MxTootConfig.java b/src/main/java/io/github/ma1uta/mxtoot/matrix/MxTootConfig.java index b6200d3..4856a7a 100644 --- a/src/main/java/io/github/ma1uta/mxtoot/matrix/MxTootConfig.java +++ b/src/main/java/io/github/ma1uta/mxtoot/matrix/MxTootConfig.java @@ -25,6 +25,7 @@ import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.Table; +import javax.validation.constraints.Size; /** * Matrix bot persistent configuration. @@ -75,19 +76,22 @@ public class MxTootConfig extends BotConfig { /** * Format of the regular posts. */ - @Column(name = "mstdn_post_format") + @Column(name = "mstdn_post_format", length = 4000) + @Size(max = 4000) private String postFormat; /** * Format of the reply. */ - @Column(name = "mstdn_reply_format") + @Column(name = "mstdn_reply_format", length = 4000) + @Size(max = 4000) private String replyFormat; /** * Format of the boost message. */ - @Column(name = "mstdn_boost_format") + @Column(name = "mstdn_boost_format", length = 4000) + @Size(max = 4000) private String boostFormat; /** @@ -111,19 +115,22 @@ public class MxTootConfig extends BotConfig { /** * Format of the mention message. */ - @Column(name = "mstdn_mention_format") + @Column(name = "mstdn_mention_format", length = 4000) + @Size(max = 4000) private String mentionFormat; /** * Format of the favourite message. */ - @Column(name = "mstdn_favourite_format") + @Column(name = "mstdn_favourite_format", length = 4000) + @Size(max = 4000) private String favouriteFormat; /** * Format of the follow format. */ - @Column(name = "mstdn_follow_format") + @Column(name = "mstdn_follow_format", length = 4000) + @Size(max = 4000) private String followFormat; public String getMastodonServer() {