net.java.ao.schema
Annotation Type StringLength


@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).


Required Element Summary
 int value
          Specifies the maximum length of the database column in characters.
 

Element Detail

value

public abstract int value
Specifies the maximum length of the database column in characters. This can be a positive integer or UNLIMITED.



Copyright © 2007-2013. All Rights Reserved.