Id, EmbeddedId, Nature
| Modifier and Type | Class and Description |
|---|---|
| public static enum | EntityIdentifierMapping.Nature
The style of identifier used. |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Object | |
| public default Object | Returns: The identifierThe entity instance entity, SharedSessionContractImplementor The session session)Return the identifier of the persistent or transient object, or throw an exception if the instance is "unsaved" Used by OneToOneType and ManyToOneType to determine what id value should be used for an object that may or may not be associated with the session. |
| public EntityIdentifierMapping. | |
| public default String | getPartName()
Implements org. |
| public IdentifierValue | getUnsavedStrategy()
The strategy for distinguishing between detached and transient state based on the identifier mapping |
| public Object | |
| public default boolean | |
| public static boolean | |
| public void | setIdentifier(Object entity, Object id, SharedSessionContractImplementor session)
Inject an identifier value into an instance of the entity |
| ID_ROLE_NAME | back to summary |
|---|---|
| public static final String ID_ROLE_NAME | |
| LEGACY_ID_NAME | back to summary |
|---|---|
| public static final String LEGACY_ID_NAME | |
| getAttributeName | back to summary |
|---|---|
| public String getAttributeName() The name of the attribute defining the id, if one | |
| getIdentifier | back to summary |
|---|---|
| public Object getIdentifier(Object entity) Extract the identifier from an instance of the entity | |
| getIdentifierIfNotUnsaved | back to summary |
|---|---|
| public default Object getIdentifierIfNotUnsaved(Object entity, SharedSessionContractImplementor session) Return the identifier of the persistent or transient object, or throw an exception if the instance is "unsaved" Used by OneToOneType and ManyToOneType to determine what id value should be used for an object that may or may not be associated with the session. This does a "best guess" using any/all info available to use (not just the EntityEntry).
| |
| getNature | back to summary |
|---|---|
public EntityIdentifierMapping.
| |
| getPartName | back to summary |
|---|---|
| public default String getPartName() Implements org. Doc from org. The local part name, which is generally the unqualified role name
| |
| getUnsavedStrategy | back to summary |
|---|---|
| public IdentifierValue getUnsavedStrategy() The strategy for distinguishing between detached and transient state based on the identifier mapping | |
| instantiate | back to summary |
|---|---|
| public Object instantiate() Instantiate an instance of the identifier. API Note This is really only valid on composite identifiers | |
| isEntityIdentifierMapping | back to summary |
|---|---|
| public default boolean isEntityIdentifierMapping() Overrides default org.
| |
| matchesRoleName | back to summary |
|---|---|
| public static boolean matchesRoleName(String name) | |
| setIdentifier | back to summary |
|---|---|
| public void setIdentifier(Object entity, Object id, SharedSessionContractImplementor session) Inject an identifier value into an instance of the entity | |
| Modifier and Type | Field and Description |
|---|---|
| public static final EntityIdentifierMapping. | COMPOSITE
An "aggregated" composite identifier, which is another way to say that the identifier is represented as an embeddable. |
| public static final EntityIdentifierMapping. | SIMPLE
Simple, single-column identifier. |
| public static final EntityIdentifierMapping. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static EntityIdentifierMapping. | |
| public static EntityIdentifierMapping. |
| COMPOSITE | back to summary |
|---|---|
| public static final EntityIdentifierMapping. An "aggregated" composite identifier, which is another way to say that the identifier is represented as an embeddable.
| |
| SIMPLE | back to summary |
|---|---|
| public static final EntityIdentifierMapping. Simple, single-column identifier.
| |
| VIRTUAL | back to summary |
|---|---|
| public static final EntityIdentifierMapping. Composite identifier defined with multiple
| |
| Nature | back to summary |
|---|---|
| private Nature() | |
| valueOf | back to summary |
|---|---|
| public static EntityIdentifierMapping. | |
| values | back to summary |
|---|---|
| public static EntityIdentifierMapping. | |