You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using annotations from javax.validation.constraints is very common in developing an app using JEE, spring or any other java framework. It's used to validate field values of java beans.
For example :
importjavax.validation.constraints.NotNull;
importjavax.validation.constraints.Size;
publicclassUser {
@NotNullprivateStringusername;
@Size(min = 6, max = 20)
privateStringpassword;
// Constructor, methods, etc.
}
A good feature to have is to generate these beans respecting the constraints annotations.
These annotations serve as just metadata, and will not validate until you use a validator, like Hibernate Validator.
So the goal is to implement a way for reading these constraints and generate objects that respect them
The text was updated successfully, but these errors were encountered:
Using annotations from javax.validation.constraints is very common in developing an app using JEE, spring or any other java framework. It's used to validate field values of java beans.
For example :
A good feature to have is to generate these beans respecting the constraints annotations.
These annotations serve as just metadata, and will not validate until you use a validator, like Hibernate Validator.
So the goal is to implement a way for reading these constraints and generate objects that respect them
The text was updated successfully, but these errors were encountered: