Using the hibernate validator i declare something like this
public class TestSomething{
@Length(max=30, message="Error Message.")
private String name;
getter and setter here
}
is it possible to get the maximum number of character in this case 30 something like
TestSomething ts = new TestSomething();
int maxValue = ts.getName.getThatMaximumNumberOrSomethng
will java reflection on this kind of situation?
Aucun commentaire:
Enregistrer un commentaire