Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions

Explicitly specifies the maximum length, in characters, of the underlying database column corresponding to the method in question. This is valid for accessors of type String, and is ignored for all other types. The value can be a positive integer or UNLIMITED; an unlimited-length string is stored as the corresponding "long string" database type (TEXT, CLOB, etc. depending on the database provider).

public @interface StringLength {

Specifies the maximum length of the database column in characters. This can be a positive integer or UNLIMITED.
	int value();
    public static final int MAX_LENGTH = 767;
	public static final int UNLIMITED = -1;
New to GrepCode? Check out our FAQ X