Top Description Fields Constructors Methods
org.hibernate.id

public final Enum EntityIdentifierNature

extends Enum<EntityIdentifierNature>
Class Inheritance

Describes the possible natures of an entity-defined identifier.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public 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.

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.

public static final EntityIdentifierNature
SIMPLE

A simple identifier.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static EntityIdentifierNature
public static EntityIdentifierNature[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

AGGREGATED_COMPOSITEback to summary
public 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:

  • a <composite-id/> mapping naming a single identifier attribute via the name XML-attribute
  • an @EmbeddedId annotation
See Also
javax.persistence.EmbeddedId
NON_AGGREGATED_COMPOSITEback to summary
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:

  • a <composite-id/> mapping without a specified name XML-attribute (which would name the single identifier attribute
  • multiple @Id annotations
NOTE : May or may not have a related "lookup identifier class" as indicated by a @IdClass annotation.
See Also
javax.persistence.IdClass
SIMPLEback to summary
public static final EntityIdentifierNature 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

Constructor Detail

EntityIdentifierNatureback to summary
private EntityIdentifierNature()

Method Detail

valueOfback to summary
public static EntityIdentifierNature valueOf(String name)
valuesback to summary
public static EntityIdentifierNature[] values()