Hitachi

uCosminexus Application Server Compatibility Guide


8.12.12 @EmbeddedId

Organization of this subsection

(1) Description

This annotation specifies the compound primary key of an embedded class.

This annotation is added in the persistence property or persistence field of an embeddable class owned by the entity.

When using @EmbeddedId, you cannot specify multiple @EmbeddedIds or specify @Id besides @EmbeddedId.

When you add @Transient to a field of the embedded class, the compound primary key will not be applicable for that field.

The applicable targets are method and field.

(2) Element

@EmbeddedId does not have attributes.