javax.persistence
Annotation Type Enumerated


@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface Enumerated

An Enumerated annotation specifies that a persistent property or field should be persisted as a enumerated type. The Enumerated annotation may be used in conjunction with the Basic annotation.

Since:
EJB 3.0 version.
Author:
Florent Benoit
See Also:
EJB 3.0 specification

Optional Element Summary
 EnumType value
          (Optional) The type used in mapping an enum type.
 

value

public abstract EnumType value
(Optional) The type used in mapping an enum type. (default = ORDINAL)

Default:
ORDINAL