entity Platform {
platformName String required maxlength(100),
onPermiseFlag String maxlength(1),
cloudFlag String maxlength(1)
}
The column 'onPermiseFlag'
and 'cloudFlag'
can have only two value either 'Y'
or 'N'
?
How to add validation for this?
How to add validations in JDL so that these two columns take only two values either 'Y' or 'N'