Skip to contentPackage: Enumerated
Enumerated
Coverage
1: package cz.cvut.kbss.jopa.model.annotations;
2:
3: import java.lang.annotation.*;
4:
5: /**
6: * Specifies that a persistent property or field should be persisted as an enumerated type.
7: * <p>
8: * If the enumerated type is not specified or the Enumerated annotation is not used, the EnumType value is assumed to be
9: * {@code STRING}.
10: */
11: @Documented
12: @Retention(RetentionPolicy.RUNTIME)
13: @Target(ElementType.FIELD)
14: public @interface Enumerated {
15:
16: /**
17: * (Optional) The type used in mapping an enum type.
18: *
19: * @return Enum mapping type
20: */
21: EnumType value() default EnumType.STRING;
22: }