Package org.hibernate.metamodel
Enum Class ValueClassification
- All Implemented Interfaces:
Serializable
,Comparable<ValueClassification>
,Constable
At the end of the day, any "value mapping" (id, version, attribute, collection element, etc.)
can be one of a few classifications. This defines an enumeration of those classifications.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionANY is a Hibernate-specific concept.The mapped value is a basic value (String, Date, etc).AnEmbeddable
valueReference to an entity -
Method Summary
Modifier and TypeMethodDescriptionstatic ValueClassification
Returns the enum constant of this class with the specified name.static ValueClassification[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BASIC
The mapped value is a basic value (String, Date, etc). -
ANY
ANY is a Hibernate-specific concept. It is essentially a "reverse discrimination". Here, the association itself defines a discriminator to the associated entity, sort of the reverse of discriminator-inheritance. Here the various associated types can be unrelated in terms of mapped inheritance. -
EMBEDDABLE
AnEmbeddable
value -
ENTITY
Reference to an entity
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-