Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HV-1541 Adding annotation processor support for ISBN constraint
- Registering new constraint in AP types. - Adding simple tests to check if AP works correctly with a new constraint.
- Loading branch information
1 parent
91c4ed3
commit 5134f12
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...rocessor/src/test/java/org/hibernate/validator/ap/testmodel/ModelWithISBNConstraints.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,25 @@ | |||
/* | |||
* Hibernate Validator, declare and validate application constraints | |||
* | |||
* License: Apache License, Version 2.0 | |||
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>. | |||
*/ | |||
package org.hibernate.validator.ap.testmodel; | |||
|
|||
import org.hibernate.validator.constraints.ISBN; | |||
|
|||
/** | |||
* @author Marko Bekhta | |||
*/ | |||
public class ModelWithISBNConstraints { | |||
|
|||
@ISBN | |||
private String string; | |||
|
|||
@ISBN | |||
private CharSequence charSequence; | |||
|
|||
@ISBN | |||
private Integer integer; | |||
|
|||
} |