on 04-11-2016 4:33 AM
Hybris 5.7 Validation trail: https://wiki.hybris.com/pages/viewpage.action?pageId=294094213
In the Validation trail, under "Writing a custom validation constraint", I'm getting an error when I click "Create" for a new "NotEmptyCuppyConstraint". The cause is the blank read-only "Annotation class" field. I already did an "ant all updatesystem -Dtenant=master" before starting the Hybris server.
How do I fix this?
I found that hybris does not support custom annotation for custom constraint.Look at this class AttributeConstraintValidator.In this class,look at this method isConstraintValidForAccessor.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I checked the API for AttributeConstraint validator (https://download.hybris.com/api/5.7.0/commercesuite/), but I do not see a method named isConstraintValidForAccessor.
my skype account is nogrethumphrey@gmail.com
Hi,Did you find the answer?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not have correct answer, but I found a workaround to make the constraint work. See my answer: http://answers.sap.com/answers/12787051/view.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
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.