color
This commit is contained in:
parent
ebac270693
commit
152f1fdac4
@ -17,5 +17,7 @@ public class CreateOrUpdateDossierStatusRequest {
|
||||
|
||||
private String description;
|
||||
|
||||
private String color;
|
||||
|
||||
private String dossierTemplateId;
|
||||
}
|
||||
|
||||
@ -20,6 +20,7 @@ public class DossierStatusInfo {
|
||||
private String id;
|
||||
private String name;
|
||||
private String description;
|
||||
private String color;
|
||||
private String dossierTemplateId;
|
||||
|
||||
}
|
||||
|
||||
@ -26,6 +26,9 @@ public class DossierStatusEntity {
|
||||
@Column
|
||||
private String description;
|
||||
|
||||
@Column
|
||||
private String color;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "dossier_template_id")
|
||||
private DossierTemplateEntity dossierTemplate;
|
||||
|
||||
@ -63,7 +63,7 @@ public class DossierStatusPersistenceService {
|
||||
@Transactional
|
||||
public void deleteDossierStatus(String dossierStatusId, String replaceDossierStatusId) {
|
||||
|
||||
if(dossierStatusId.equalsIgnoreCase(replaceDossierStatusId)){
|
||||
if (dossierStatusId.equalsIgnoreCase(replaceDossierStatusId)) {
|
||||
throw new BadRequestException("Cannot replace with self");
|
||||
}
|
||||
|
||||
|
||||
@ -15,6 +15,9 @@ databaseChangeLog:
|
||||
- column:
|
||||
name: description
|
||||
type: VARCHAR(255)
|
||||
- column:
|
||||
name: description
|
||||
type: VARCHAR(20)
|
||||
- column:
|
||||
name: dossier_template_id
|
||||
type: VARCHAR(255)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user