@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
Modifier and Type | Required Element and Description |
---|---|
AttributeOverride[] |
value
(Required) One or more field or property mapping overrides.
|
public abstract AttributeOverride[] value
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.