fix @Lob
This commit is contained in:
parent
f11e2fde88
commit
30c2f4c45d
@ -87,6 +87,11 @@
|
||||
<artifactId>webstly-wireguard</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mariadb.jdbc</groupId>
|
||||
<artifactId>mariadb-java-client</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<!-- Database -->
|
||||
|
@ -38,7 +38,7 @@ public class BorrowItem implements UserData {
|
||||
@Column(name = "name", nullable = false)
|
||||
private String name;
|
||||
@Lob
|
||||
@Column(name = "description", nullable = true)
|
||||
@Column(name = "description", nullable = true, length = 100000)
|
||||
private String description;
|
||||
@Column(name = "url", nullable = true)
|
||||
private String url;
|
||||
|
@ -41,10 +41,10 @@ public class BorrowRequest implements UserData {
|
||||
@Column(name = "ends", nullable = false)
|
||||
private Instant ends;
|
||||
@Lob
|
||||
@Column(name = "reply", nullable = true)
|
||||
@Column(name = "reply", nullable = true, length = 100000)
|
||||
private String reply;
|
||||
@Lob
|
||||
@Column(name = "comment", nullable = true)
|
||||
@Column(name = "comment", nullable = true, length = 100000)
|
||||
private String comment;
|
||||
@Transient
|
||||
private BorrowItem borrowItem;
|
||||
|
@ -32,7 +32,7 @@ public class UserProfileField implements UserData {
|
||||
@Column(name = "value", nullable = true)
|
||||
private String value;
|
||||
@Lob
|
||||
@Column(name = "blob_value", nullable = true)
|
||||
@Column(name = "blob_value", nullable = true, length = 100000)
|
||||
private String blob;
|
||||
@Column(name = "type", nullable = false)
|
||||
private ProfileFieldType type;
|
||||
|
@ -33,6 +33,7 @@ public class Invite implements UserData {
|
||||
private Instant starts;
|
||||
private Instant expires;
|
||||
@Lob
|
||||
@Column(length = 100000)
|
||||
private String message;
|
||||
private String note;
|
||||
private boolean redeemed;
|
||||
|
@ -37,17 +37,22 @@ public class JitsiRoom implements UserData {
|
||||
private Instant expires;
|
||||
@Lob
|
||||
@JsonIgnore
|
||||
@Column(length = 100000)
|
||||
private String token;
|
||||
@Lob
|
||||
@JsonIgnore
|
||||
@Column(length = 100000)
|
||||
private String moderationToken;
|
||||
@Lob
|
||||
@Column(length = 100000)
|
||||
private String url;
|
||||
@Lob
|
||||
@Column(length = 100000)
|
||||
private String moderationUrl;
|
||||
@Reference
|
||||
private String code;
|
||||
@Lob
|
||||
@Column(length = 100000)
|
||||
private String orgUrl;
|
||||
|
||||
/**
|
||||
|
@ -24,7 +24,7 @@ public class MinetestAccount implements UserData {
|
||||
@Column(name = "owner")
|
||||
private Long owner;
|
||||
@Lob
|
||||
@Column(name = "skin")
|
||||
@Column(name = "skin", length = 100000)
|
||||
private String skin;
|
||||
|
||||
/**
|
||||
|
@ -25,6 +25,7 @@ public class ParteyUserReport {
|
||||
private Long reporter;
|
||||
private Long user;
|
||||
@Lob
|
||||
@Column(length = 100000)
|
||||
private String comment;
|
||||
private String world;
|
||||
private Instant created;
|
||||
|
@ -43,8 +43,8 @@ public class Timeslot implements UserData {
|
||||
private Visibility visibility;
|
||||
@Column(name = "title", nullable = true)
|
||||
private String title;
|
||||
@Column(name = "description", nullable = true)
|
||||
@Lob
|
||||
@Column(name = "description", nullable = true, length = 100000)
|
||||
private String description;
|
||||
@Column(name = "share", nullable = true)
|
||||
private String share;
|
||||
|
2
pom.xml
2
pom.xml
@ -14,7 +14,7 @@
|
||||
<java.version>17</java.version>
|
||||
<querydsl.version>5.0.0</querydsl.version>
|
||||
<nimbus.version>9.37.3</nimbus.version>
|
||||
<revision>3.0.0-SNAPSHOT</revision>
|
||||
<revision>3.0.1-SNAPSHOT</revision>
|
||||
</properties>
|
||||
|
||||
<parent>
|
||||
|
@ -34,6 +34,7 @@ public class ShortenedUrl implements UserData {
|
||||
private String code;
|
||||
private Long owner;
|
||||
@Lob
|
||||
@Column(length = 100000)
|
||||
private String url;
|
||||
private Instant expires;
|
||||
@JsonIgnore
|
||||
@ -41,6 +42,7 @@ public class ShortenedUrl implements UserData {
|
||||
private String passwordHash;
|
||||
private String link;
|
||||
@Lob
|
||||
@Column(length = 100000)
|
||||
private String note;
|
||||
@Column(name = "addon", columnDefinition = "boolean default false")
|
||||
private boolean queryParameters;
|
||||
|
Loading…
Reference in New Issue
Block a user