Top Description Methods
javax.persistence

public @Interface AttributeOverrides

extends Annotation
Annotations
@Target:TYPE, METHOD, FIELD
@Retention:RUNTIME
Imports
java.lang.annotation.Target, .Retention

Used to override mappings of multiple properties or fields.

   Example:

   @Embedded
   @AttributeOverrides({
           @AttributeOverride(name="startDate", 
                              column=@Column("EMP_START")),
           @AttributeOverride(name="endDate", 
                              column=@Column("EMP_END"))
   })
   public EmploymentPeriod getEmploymentPeriod() { ... }

Since
Java Persistence 1.0
See Also
AttributeOverride

Method Summary

Modifier and TypeMethod and Description
public AttributeOverride[]
value()

(Required) One or more field or property mapping overrides.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public AttributeOverride[] value()

(Required) One or more field or property mapping overrides.