bryan.dollery wrote:
Sorry, my fault for not reading your exception properly. I had assumed that you were writing your own constraint annotations, which is when this problem most frequently occurs (apparently the documented example code is out of date and this line is missing from it -- it's needed in each custom annotation). The code I posted is intended to sit in such an annotation.
What versions of the api and validator are you using?
The 4.0 version as the org.hibernate.validation package indicates.