Package org.hibernate.metamodel
Enum AttributeClassification
- java.lang.Object
-
- java.lang.Enum<AttributeClassification>
-
- org.hibernate.metamodel.AttributeClassification
-
- All Implemented Interfaces:
Serializable
,Comparable<AttributeClassification>
@Incubating public enum AttributeClassification extends Enum<AttributeClassification>
An extended set ofAttribute.PersistentAttributeType
addingANY
- Since:
- 6.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY
BASIC
ELEMENT_COLLECTION
EMBEDDED
MANY_TO_MANY
MANY_TO_ONE
ONE_TO_MANY
ONE_TO_ONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Attribute.PersistentAttributeType
getJpaClassification()
The associatedAttribute.PersistentAttributeType
, if onestatic AttributeClassification
valueOf(String name)
Returns the enum constant of this type with the specified name.static AttributeClassification[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BASIC
public static final AttributeClassification BASIC
- See Also:
Basic
-
EMBEDDED
public static final AttributeClassification EMBEDDED
- See Also:
Embedded
-
ANY
public static final AttributeClassification ANY
- See Also:
Any
-
ONE_TO_ONE
public static final AttributeClassification ONE_TO_ONE
- See Also:
OneToOne
-
MANY_TO_ONE
public static final AttributeClassification MANY_TO_ONE
- See Also:
ManyToOne
-
ELEMENT_COLLECTION
public static final AttributeClassification ELEMENT_COLLECTION
- See Also:
ElementCollection
-
ONE_TO_MANY
public static final AttributeClassification ONE_TO_MANY
- See Also:
OneToMany
-
MANY_TO_MANY
public static final AttributeClassification MANY_TO_MANY
- See Also:
ManyToMany
-
-
Method Detail
-
values
public static AttributeClassification[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AttributeClassification c : AttributeClassification.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttributeClassification valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getJpaClassification
public Attribute.PersistentAttributeType getJpaClassification()
The associatedAttribute.PersistentAttributeType
, if one
-
-