KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I noticed that all built-in constraints have an empty value for the validatedBy parameter in @Constraint . i.e. @Constraint(validatedBy = {}) First, why are they allowed to have an empty value for validatedBy ? I thought you can leave it blank only for constraint composition that does not need addtional validation? Also, note that the Hibernate Validator can still find a validator implementation class for each built-in constraint, despite the validatedBy is empty, but if I leave the validatedBy blank for my constraint, my custom validator never gets picked up. Why is that? Thanks.
Tags (comma-separated)
Save Edits
Cancel