public enum DependencyType extends Enum<DependencyType>
OneToMany and ManyToOne are considered
the same as they represent the opposite sides of a single relationship.| Enum Constant and Description |
|---|
MANY_TO_MANY |
ONE_TO_MANY |
ONE_TO_ONE |
| Modifier and Type | Method and Description |
|---|---|
abstract Class<? extends Annotation> |
annotationType() |
static DependencyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DependencyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DependencyType ONE_TO_ONE
public static final DependencyType ONE_TO_MANY
public static final DependencyType MANY_TO_MANY
public static DependencyType[] values()
for (DependencyType c : DependencyType.values()) System.out.println(c);
public static DependencyType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract Class<? extends Annotation> annotationType()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.