Package org.hibernate.metamodel.mapping
Enum EntityIdentifierMapping.Nature
- java.lang.Object
-
- java.lang.Enum<EntityIdentifierMapping.Nature>
-
- org.hibernate.metamodel.mapping.EntityIdentifierMapping.Nature
-
- All Implemented Interfaces:
Serializable
,Comparable<EntityIdentifierMapping.Nature>
- Enclosing interface:
- EntityIdentifierMapping
public static enum EntityIdentifierMapping.Nature extends Enum<EntityIdentifierMapping.Nature>
The style of identifier used.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPOSITE
An "aggregated" composite identifier, which is another way to say that the identifier is represented as an embeddable.SIMPLE
Simple, single-column identifier.VIRTUAL
Composite identifier defined with multipleId
mappings.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EntityIdentifierMapping.Nature
valueOf(String name)
Returns the enum constant of this type with the specified name.static EntityIdentifierMapping.Nature[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SIMPLE
public static final EntityIdentifierMapping.Nature SIMPLE
Simple, single-column identifier.- See Also:
Id
,BasicEntityIdentifierMapping
-
COMPOSITE
public static final EntityIdentifierMapping.Nature COMPOSITE
An "aggregated" composite identifier, which is another way to say that the identifier is represented as an embeddable.- See Also:
EmbeddedId
,AggregatedIdentifierMapping
-
VIRTUAL
public static final EntityIdentifierMapping.Nature VIRTUAL
- See Also:
Id
,IdClass
,NonAggregatedIdentifierMapping
-
-
Method Detail
-
values
public static EntityIdentifierMapping.Nature[] 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 (EntityIdentifierMapping.Nature c : EntityIdentifierMapping.Nature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EntityIdentifierMapping.Nature 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
-
-