javax.persistence
Annotation Type Embedded


@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface Embedded

The Embedded annotation is used to specify a persistent field or property of an entity whose value is an instance of an embeddable class.
The AttributeOverride and/ or AttributeOverrides annotations may be used to override the column mappings declared within the embeddable class, which are mapped to the entity table.
Implementations are not required to support embedded objects that are mapped across more than one table (e.g., split across primary and secondary tables or multiple secondary tables).

Since:
EJB 3.0 version.
Author:
Florent Benoit
See Also:
EJB 3.0 specification