What is the Annotation Processor
Chapter 8. Annotation Processor (EXPERIMENTAL) 8.1. Prerequisites 8.2. Features 8.3. Options 8.4. Using the Annotation Processor 8.4.1. Command line builds 8.4.2. IDE builds 8.5. Known issues Have you ever caught yourself by unintentionally doing things like annotating Strings with @Min to specify a minimum length (instead of using @Size) annotating the setter of a JavaBean property (instead of the getter method) annotating static fields/methods with constraint annotations (which is not supported)? Then the Hibernate Validator Annotation Processor is the right thing for you. It helps preventing such mistakes by plugging into the build process and raising compilation errors whenever constraint annotations are incorrectly used. Warning A first version of the Hibernate Validator Annotation Processor is part of Hibernate Validator since release 4.1. It is currently still under development and should therefore be considered as an experimental feature. Some known issues can be found at the end of this chapter. In case any problems arise when using the processor feel free to ask for help at the forum or create an issue within JIRA.