diff --git a/data-api/open-api-specification.yml b/data-api/open-api-specification.yml index d291fa2..bce81d7 100644 --- a/data-api/open-api-specification.yml +++ b/data-api/open-api-specification.yml @@ -960,6 +960,8 @@ components: type: 'string' lov_code: type: 'string' + mandatory_flag: + type: 'boolean' commonLookupValueDetail: type: 'object' properties: diff --git a/data-service/src/main/java/uk/gov/laa/ccms/data/entity/PriorAuthority.java b/data-service/src/main/java/uk/gov/laa/ccms/data/entity/PriorAuthority.java index 1659ce9..48466dc 100644 --- a/data-service/src/main/java/uk/gov/laa/ccms/data/entity/PriorAuthority.java +++ b/data-service/src/main/java/uk/gov/laa/ccms/data/entity/PriorAuthority.java @@ -50,6 +50,15 @@ public class PriorAuthority { @Column(name = "LOV_CODE") private String lovCode; + /** + * The mandatory flag. + */ + @Column(name = "MANDATORY_FLAG") + private Boolean mandatoryFlag; + + /** + * Many to one back reference to PriorAuthorityType. + */ @ManyToOne @JoinColumn(name = "PRIOR_AUTHORITY_TYPE_CODE") private PriorAuthorityType type;