public enum EntityIdentifierNature extends Enum<EntityIdentifierNature>
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
<id/>
mapping@Id
annotationpublic static final EntityIdentifierNature NON_AGGREGATED_COMPOSITE
<composite-id/>
mapping without a specified name
XML-attribute (which would name
the single identifier attribute
@Id
annotations
@IdClass
annotation.IdClass
public static final EntityIdentifierNature AGGREGATED_COMPOSITE
<composite-id/>
mapping naming a single identifier attribute via the name
XML-attribute
@EmbeddedId
annotation
EmbeddedId
public 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 © 2016 JBoss by Red Hat. All rights reserved.