Embeddable |
An Embedded class is a class whose instances are stored as part of an owning entity; it shares the identity of the owning entity. Each field of the embedded class is mapped to the database table associated with the owning entity.
To override the mapping information for a specific subclass, use the @AttributeOverride
annotation for that specific class.
An embeddable entity is identified by the @Embeddable
annotation.
Use this procedure to add embeddable persistence to an existing entity:
Open the Java class in the Package Explorer.
Select the class in the JPA Structure view.
In the JPA Details view, use the Map As drop-list to select Embeddable.
Complete the remaining JPA Details view (for entities).