Let's say I have an annotation JSR 303 class like this:
class A {
@NotNull
private String b;
@Min(5)
@Max(10)
private int num = 3;
@Pattern(regexp="[0-9]*")
private String foo = "12345aa";
}
How can I take that class and generate a validation.xml which contains the same constraints as those that are specified by the annotations?