on 2020 Sep 16 2:18 PM
hi Expert,
as we can see that categories is not direct attribute of product Model its coming from relation. so my requirement is to apply validation constraint on this categories attribute. i tried the below code but unfortunately did not work.
INSERT_UPDATE NotNullConstraint; descriptor(enclosingType(code), qualifier); id[unique = true, allownull = true] ; qualifier[allownull = true]; severity(code, itemtype(code)); target[allownull = true] ; type(code) ; constraintGroups(id) ; message[lang = en];
; Product:supercategories ;ProductSuperCategoryNotNullConstraint ; supercategories ; WARN:Severity ; de.hybris.platform.core.model.product.ProductModel ; Product ; defaultBackofficeValidationGroup,defaultBackofficeCoverageGroup ,rcValidationGroup,rcProductSuperCategoryCoverageGroup ; Product super category must not be Null
Request clarification before answering.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.