Skip to content

Commit

Permalink
Fix: synchronizing the browser settings to the database #1481 (#1510)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Stirling <[email protected]>
  • Loading branch information
Ludy87 and Frooodle authored Jun 26, 2024
1 parent 88e8663 commit 3a6969c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/stirling/software/SPDF/model/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
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;
Expand Down Expand Up @@ -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<String, String> settings = new HashMap<>(); // Key-value pairs of settings.

Expand Down

0 comments on commit 3a6969c

Please sign in to comment.