mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 19:33:11 +02:00
Fix Audit & Usage Analytics Sections (#5586)
Fixed issue where @lob annotation on audit column was casing `org.postgresql.util.PSQLException: Large Objects may not be used in auto-commit mode.` data retrieval issues with Postgres
This commit is contained in:
+2
-1
@@ -33,7 +33,8 @@ public class PersistentAuditEvent {
|
|||||||
private String principal;
|
private String principal;
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
@Lob private String data; // JSON blob
|
@Column(columnDefinition = "text")
|
||||||
|
private String data; // JSON blob
|
||||||
|
|
||||||
private Instant timestamp;
|
private Instant timestamp;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,7 +87,6 @@ public class User implements UserDetails, Serializable {
|
|||||||
|
|
||||||
@ElementCollection
|
@ElementCollection
|
||||||
@MapKeyColumn(name = "setting_key")
|
@MapKeyColumn(name = "setting_key")
|
||||||
@Lob
|
|
||||||
@Column(name = "setting_value", columnDefinition = "text")
|
@Column(name = "setting_value", columnDefinition = "text")
|
||||||
@CollectionTable(name = "user_settings", joinColumns = @JoinColumn(name = "user_id"))
|
@CollectionTable(name = "user_settings", joinColumns = @JoinColumn(name = "user_id"))
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
|
|||||||
Reference in New Issue
Block a user