FileDocCategorySizeDatePackage
AttributeOverrides.javaAPI DocGlassfish v2 API2909Fri May 04 22:34:06 BST 2007javax.persistence

AttributeOverrides

public class AttributeOverrides
Is 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

Fields Summary
Constructors Summary
Methods Summary
javax.persistence.AttributeOverride[]value()
One or more mapping override