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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.