> # The Java Sequence Interface

> The Sequence interface is used to store an array field in the database as a `sequence`.

> ### For an overview see page Java Classes

> ### Class Definition

>         @Target(ElementType.FIELD)
>         @Retention(RetentionPolicy.RUNTIME)
>         public @interface Sequence
>         {
>             public enum Order
>             {
>                 None,
>                 Ascending,
>                 Descending
>             }
>             Order order() default Order.None;

>             public enum Type
>             {
>                 UInt1,
>                 UInt2,
>                 UInt4,
>                 UInt8,
>                 Int1,
>                 Int2,
>                 Int4,
>                 Int8,
>                 Float,
>                 Double,
>                 Char,
>                 DateTime
>             }

>             Type type();

>             /**
>             * Size of sequence element: needed only for sequence of char
>             */
>             int elemSize() default 0;
>         };