@Retention(value=RUNTIME) @Target(value=METHOD) public @interface StringLength
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).
Modifier and Type | Fields and Description |
---|---|
static int |
MAX_LENGTH |
static int |
UNLIMITED |
Modifier and Type | Required Element and Description |
---|---|
int |
value
Specifies the maximum length of the database column in characters.
|
public abstract int value
UNLIMITED
.Copyright © 2007–2021 Atlassian. All rights reserved.