Pull request #48: RED-2362: Set text Colums to lenght 4000

Merge in RED/persistence-service from RED-2362 to master

* commit '22f019629eee4dac9f50385be186fbbfd2b205b7':
  RED-2362: Set text Colums to lenght 4000
This commit is contained in:
Dominique Eiflaender 2021-10-08 14:53:08 +02:00
commit d23665341f
12 changed files with 15 additions and 14 deletions

View File

@ -29,7 +29,7 @@ public class CommentEntity {
@Column
private OffsetDateTime date;
@Column(columnDefinition = "text")
@Column(length = 4000)
private String text;
@Column(name = "user_id")
private String user;

View File

@ -24,7 +24,7 @@ public class ManualForceRedactionEntity {
private String user;
@Column
private AnnotationStatus status;
@Column(columnDefinition = "text")
@Column(length = 4000)
private String legalBasis;
@Column
private OffsetDateTime requestDate;

View File

@ -26,9 +26,9 @@ public class ManualRedactionEntryEntity {
private String user;
@Column
private String typeId;
@Column
@Column(length = 4000)
private String value;
@Column(columnDefinition = "text")
@Column(length = 4000)
private String reason;
@Column
private String legalBasis;

View File

@ -32,7 +32,7 @@ public class AuditEntity {
private String category;
@Column
private String userId;
@Column
@Column(length = 4000)
private String message;
@Basic(fetch = FetchType.EAGER)

View File

@ -19,7 +19,7 @@ public class DictionaryEntryEntity {
@Id
@GeneratedValue
private long entryId;
@Column
@Column(length = 4000)
private String value;
@Column
private long version;

View File

@ -20,9 +20,9 @@ public class LegalBasisEntity {
private long id;
@Column
private String name;
@Column(columnDefinition = "text")
@Column(length = 4000)
private String description;
@Column(columnDefinition = "text")
@Column(length = 4000)
private String reason;

View File

@ -38,7 +38,7 @@ public class TypeEntity {
private boolean isCaseInsensitive;
@Column
private boolean isRecommendation;
@Column
@Column(length = 4000)
private String description;
@Column
private long version;

View File

@ -21,7 +21,7 @@ public class WatermarkEntity {
@Id
@Column
private String dossierTemplateId;
@Column(columnDefinition = "text")
@Column(length = 4000)
private String text;
@Column
private String hexColor;

View File

@ -21,7 +21,8 @@ public class DossierAttributeEntity {
@EmbeddedId
private DossierAttributeEntityId id;
@Column
// TODO Maybe @Lob, for larger images
@Column(columnDefinition = "TEXT")
private String value;
@JsonIgnore

View File

@ -33,7 +33,7 @@ public class DossierEntity {
@Column
private OffsetDateTime date;
@Column
@Column(length = 4000)
private String description;
@Column

View File

@ -30,7 +30,7 @@ public class DossierTemplateEntity {
@Column
private String name;
@Column
@Column(length = 4000)
private String description;
@Column

View File

@ -14,7 +14,7 @@ public class FileAttributeEntity {
@EmbeddedId
private FileAttributeEntityId fileAttributeId;
@Column
@Column(length = 4000)
private String value;
@JsonIgnore