I seriously doubt the use of annotation as configurable parameter. I couldn't believe how Hibernate validator ( which boasts of having bean validation with annotations) would really help.
Say i have got to validate a field with minimum and maximum characters it could take , i can hibernate built-in annotation like this
But what if my requirement changes as min as 5 , and again as max as 20 ? , does that mean i need to recompile my beans and put them back again. On the other hand , xml works way better to externalize these dependencies. Your thoughts please ?
P:S , since the
thread discussion moved more on to Hibernate validator, please feel free to move it to appropriate forum.