@Target(value={TYPE,METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface AttributeOverrides
Example: @Embedded @AttributeOverrides({ @AttributeOverride(name="startDate", column=@Column("EMP_START")), @AttributeOverride(name="endDate", column=@Column("EMP_END")) }) public EmploymentPeriod getEmploymentPeriod() { ... }
AttributeOverride
修飾子とタイプ | 必須要素と説明 |
---|---|
AttributeOverride[] |
value
(必須) ひとつ以上のフィールドもしくはプロパティのマッピングの上書き。
|
public abstract AttributeOverride[] value
Translated by @megascus.