jakarta.persistence.IdClass , jakarta.persistence.MapsId
| Modifier and Type | Class and Description |
|---|---|
| public static interface | NonAggregatedIdentifierMapping.IdentifierValueMapper
Think of an AttributeConverter for id values to account for representation difference between virtual and id-class mappings |
| Modifier and Type | Method and Description |
|---|---|
| public default int | getFetchableKey()
Overrides default org. Implements org. FetchableContainer.
|
| public IdClassEmbeddable | |
| public NonAggregatedIdentifierMapping. | |
| public VirtualIdEmbeddable |
| getFetchableKey | back to summary |
|---|---|
| public default int getFetchableKey() Overrides default org. Implements org. Doc from org. The key that identifies this Fetchable within a
The main intent of this key is to index e.g.
| |
| getIdClassEmbeddable | back to summary |
|---|---|
| public IdClassEmbeddable getIdClassEmbeddable() The id-class representation of this id mapping | |
| getIdentifierValueMapper | back to summary |
|---|---|
| public NonAggregatedIdentifierMapping. The id-class, if there is one, otherwise the virtual-id. | |
| getVirtualIdEmbeddable | back to summary |
|---|---|
| public VirtualIdEmbeddable getVirtualIdEmbeddable() The virtual-id representation of this id mapping | |
| Modifier and Type | Method and Description |
|---|---|
| public default void | forEachAttribute(IndexedConsumer<SingularAttributeMapping> consumer)
Convenience method to iterate the attributes for this mapper's representation |
| public EmbeddableValuedModelPart | |
| public Object | getIdentifier(Object entity, SharedSessionContractImplementor session)
Extract the identifier out of the given entity, returning the mapper's representation |
| public void | setIdentifier(Object entity, Object id, SharedSessionContractImplementor session)
Extract the identifier out of the given entity, returning the mapper's representation |
| forEachAttribute | back to summary |
|---|---|
| public default void forEachAttribute(IndexedConsumer<SingularAttributeMapping> consumer) Convenience method to iterate the attributes for this mapper's representation | |
| getEmbeddedPart | back to summary |
|---|---|
| public EmbeddableValuedModelPart getEmbeddedPart() | |
| getIdentifier | back to summary |
|---|---|
| public Object getIdentifier(Object entity, SharedSessionContractImplementor session) Extract the identifier out of the given entity, returning the mapper's representation | |
| setIdentifier | back to summary |
|---|---|
| public void setIdentifier(Object entity, Object id, SharedSessionContractImplementor session) Extract the identifier out of the given entity, returning the mapper's representation | |