Top Description Methods
org.hibernate.annotations

public @Interface Array

extends Annotation
Annotations
@Incubating
@Target:FIELD, METHOD
@Retention:RUNTIME
Imports
org.hibernate.Incubating, java.lang.annotation.Retention, .Target

Specifies the maximum length of a SQL array type mapped by the annotated attribute.

For example:

@Array(length=100) // the maximum length of the SQL array
@Column(length=64) // the maximum length of the strings in the array
String[] strings;

Method Summary

Modifier and TypeMethod and Description
public int
length()

The maximum length of the array.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

lengthback to summary
public int length()

The maximum length of the array.