enumerated type -> int to string in db
This commit is contained in:
parent
00116d9346
commit
7bd8214a32
@ -23,6 +23,7 @@ public class IdRemovalEntity {
|
||||
@Column(name = "user_id")
|
||||
private String user;
|
||||
@Column
|
||||
@Enumerated(EnumType.STRING)
|
||||
private AnnotationStatus status;
|
||||
@Column
|
||||
private boolean removeFromDictionary;
|
||||
|
||||
@ -23,6 +23,7 @@ public class ManualForceRedactionEntity {
|
||||
@Column(name = "user_id")
|
||||
private String user;
|
||||
@Column
|
||||
@Enumerated(EnumType.STRING)
|
||||
private AnnotationStatus status;
|
||||
@Column(length = 4000)
|
||||
private String legalBasis;
|
||||
|
||||
@ -23,6 +23,7 @@ public class ManualImageRecategorizationEntity {
|
||||
@Column(name = "user_id")
|
||||
private String user;
|
||||
@Column
|
||||
@Enumerated(EnumType.STRING)
|
||||
private AnnotationStatus status;
|
||||
@Column
|
||||
private String typeId;
|
||||
|
||||
@ -24,6 +24,7 @@ public class ManualLegalBasisChangeEntity {
|
||||
@Column(name = "user_id")
|
||||
private String user;
|
||||
@Column
|
||||
@Enumerated(EnumType.STRING)
|
||||
private AnnotationStatus status;
|
||||
@Column
|
||||
private String legalBasis;
|
||||
|
||||
@ -33,6 +33,7 @@ public class ManualRedactionEntryEntity {
|
||||
@Column
|
||||
private String legalBasis;
|
||||
@Column
|
||||
@Enumerated(EnumType.STRING)
|
||||
private AnnotationStatus status;
|
||||
@Column
|
||||
private boolean addToDictionary;
|
||||
|
||||
@ -32,6 +32,7 @@ public class WatermarkEntity {
|
||||
@Column
|
||||
private String fontType;
|
||||
@Column
|
||||
@Enumerated(EnumType.STRING)
|
||||
private WatermarkOrientation orientation;
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
@ -27,6 +27,7 @@ public class DossierAttributeConfigEntity {
|
||||
private String placeholder;
|
||||
|
||||
@Column
|
||||
@Enumerated(EnumType.STRING)
|
||||
private DossierAttributeType type = DossierAttributeType.TEXT;
|
||||
|
||||
|
||||
|
||||
@ -52,6 +52,7 @@ public class DossierEntity {
|
||||
|
||||
@Builder.Default
|
||||
@ElementCollection
|
||||
@Enumerated(EnumType.STRING)
|
||||
private Set<DownloadFileType> downloadFileTypes = new HashSet<>();
|
||||
|
||||
@Column
|
||||
|
||||
@ -55,6 +55,7 @@ public class DossierTemplateEntity {
|
||||
private boolean deleted;
|
||||
|
||||
@ElementCollection
|
||||
@Enumerated(EnumType.STRING)
|
||||
private Set<DownloadFileType> downloadFileTypes = new HashSet<>();
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
@ -34,6 +34,7 @@ public class FileAttributeConfigEntity {
|
||||
@Column
|
||||
private String placeholder;
|
||||
@Column
|
||||
@Enumerated(EnumType.STRING)
|
||||
private FileAttributeType type = FileAttributeType.TEXT;
|
||||
|
||||
@ManyToOne
|
||||
|
||||
@ -29,9 +29,11 @@ public class FileEntity {
|
||||
private String filename;
|
||||
|
||||
@Column
|
||||
@Enumerated(EnumType.STRING)
|
||||
private FileStatus status;
|
||||
|
||||
@Column
|
||||
@Enumerated(EnumType.STRING)
|
||||
private FileStatus lastSuccessfulStatus;
|
||||
|
||||
@Column
|
||||
|
||||
@ -31,6 +31,7 @@ public class DownloadStatusEntity {
|
||||
@Column
|
||||
private String mimeType;
|
||||
@Column
|
||||
@Enumerated(EnumType.STRING)
|
||||
private DownloadStatusValue status;
|
||||
@Column
|
||||
private OffsetDateTime creationDate;
|
||||
@ -46,6 +47,7 @@ public class DownloadStatusEntity {
|
||||
private List<FileEntity> files = new ArrayList<>();
|
||||
|
||||
@ElementCollection
|
||||
@Enumerated(EnumType.STRING)
|
||||
private List<DownloadFileType> downloadFileTypes = new ArrayList<>();
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user