Package org.hibernate.id
Enum Class EntityIdentifierNature
- All Implemented Interfaces:
Serializable
,Comparable<EntityIdentifierNature>
,Constable
Describes the possible natures of an entity-defined identifier.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionComposite identifier mapped to a single entity attribute by means of an actual component class used to aggregate the tuple values.What Hibernate used to term an "embedded composite identifier", which is not to be confused with the JPA term "embedded".A simple identifier. -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityIdentifierNature
Returns the enum constant of this class with the specified name.static EntityIdentifierNature[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SIMPLE
A simple identifier. Resolved as a basic type and mapped to a singular, basic attribute. Equivalent of:- an
<id/>
mapping - a single
@Id
annotation
- an
-
NON_AGGREGATED_COMPOSITE
What Hibernate used to term an "embedded composite identifier", which is not to be confused with the JPA term "embedded". Resolved as a tuple of basic type values and mapped over multiple singular attributes. More precisely, a composite identifier where there is no single attribute representing the composite value.Equivalent to:
-
a
<composite-id/>
mapping without a specifiedname
XML-attribute (which would name the single identifier attribute, if it were specified), or -
multiple
@Id
annotations.
May or may not have a related "lookup identifier class" as indicated by an
@IdClass
annotation.- See Also:
-
a
-
AGGREGATED_COMPOSITE
Composite identifier mapped to a single entity attribute by means of an actual component class used to aggregate the tuple values. Equivalent of:-
a
<composite-id/>
mapping naming a single identifier attribute via thename
XML-attribute -
an
@EmbeddedId
annotation
- See Also:
-
a
-
-
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
-