Hi all,
I have a class
public interface SchemeEntity extends Entity {
@NotNull
@StringLength(10)
String getName();
void setName(String name);
String getDescription();
void setDescription(String description);
@OneToMany(reverse = "getGraphicLanguageScheme")
WorkflowEntity[] getWorkflowGraphicEntries();
@OneToMany(reverse = "getGraphicLanguageScheme")
GraphicLanguageEntryEntity[] getGraphicLanguageEntries();
}
Is there any OFFICIAL way to set the minimum length limit of some field, for example "name" in that entity class?
I'm expecting something like:
@ @NotNull
@StringLength(10)
@MinLenth(3)
String getName();
It means the length of "name " can be from 3 to 10.