public enum EntityIdentifierNature extends Enum<EntityIdentifierNature>
Describes the possible natures of an entity-defined identifier.
| Enum Constant and Description |
|---|
AGGREGATED_COMPOSITE
Composite identifier mapped to a single entity attribute by means of an actual component class used to
aggregate the tuple values.
|
NON_AGGREGATED_COMPOSITE
What Hibernate used to term an "embedded composite identifier", which is not to be confused with the JPA
term embedded.
|
SIMPLE
A simple identifier.
|
| Modifier and Type | Method and Description |
|---|---|
static EntityIdentifierNature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EntityIdentifierNature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityIdentifierNature SIMPLE
A simple identifier. Resolved as a basic type and mapped to a singular, basic attribute. Equivalent of:<ul>
<li>an <id/> mapping</li>
<li>a single @Id annotation</li>
</ul>
public static final EntityIdentifierNature 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.
Specifically a composite identifier where there is no single attribute representing the composite value.
Equivalent of:<ul>
<li>
a <composite-id/> mapping without a specified name XML-attribute (which would name
the single identifier attribute
</li>
<li>
multiple @Id annotations
</li>
</ul>
NOTE : May or may not have a related "lookup identifier class" as indicated by a @IdClass annotation.
IdClasspublic static final EntityIdentifierNature 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:<ul>
<li>
a <composite-id/> mapping naming a single identifier attribute via the name XML-attribute
</li>
<li>
an @EmbeddedId annotation
</li>
</ul>
EmbeddedIdpublic static EntityIdentifierNature[] values()
for (EntityIdentifierNature c : EntityIdentifierNature.values()) System.out.println(c);
public static EntityIdentifierNature 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 nullCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.