From 3a6969cad0b29988c6d4b985cd7b568ce2408818 Mon Sep 17 00:00:00 2001 From: Ludy Date: Wed, 26 Jun 2024 22:48:50 +0200 Subject: [PATCH] Fix: synchronizing the browser settings to the database #1481 (#1510) Co-authored-by: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> --- src/main/java/stirling/software/SPDF/model/User.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/stirling/software/SPDF/model/User.java b/src/main/java/stirling/software/SPDF/model/User.java index 74780dd8..0a6ccc70 100644 --- a/src/main/java/stirling/software/SPDF/model/User.java +++ b/src/main/java/stirling/software/SPDF/model/User.java @@ -16,6 +16,7 @@ import jakarta.persistence.GeneratedValue; import jakarta.persistence.GenerationType; import jakarta.persistence.Id; import jakarta.persistence.JoinColumn; +import jakarta.persistence.Lob; import jakarta.persistence.MapKeyColumn; import jakarta.persistence.OneToMany; import jakarta.persistence.Table; @@ -55,7 +56,8 @@ public class User { @ElementCollection @MapKeyColumn(name = "setting_key") - @Column(name = "setting_value") + @Lob + @Column(name = "setting_value", columnDefinition = "CLOB") @CollectionTable(name = "user_settings", joinColumns = @JoinColumn(name = "user_id")) private Map settings = new HashMap<>(); // Key-value pairs of settings.