// Set the attribute overrides if some are present.
// Set the attribute overrides first if defined.
if (isAnnotationPresent(AttributeOverrides.class)) {
for (Object attributeOverride : (Object[]) getAnnotation(AttributeOverrides.class).getAttributeArray("value")) {
addAttributeOverride(new AttributeOverrideMetadata((MetadataAnnotation)attributeOverride, this));
}
}
// Set the single attribute override second if defined.
if (isAnnotationPresent(AttributeOverride.class)) {
addAttributeOverride(new AttributeOverrideMetadata(getAnnotation(AttributeOverride.class), this));
}
// Set the association overrides if some are present.
// Set the association overrides first if defined.
if (isAnnotationPresent(AssociationOverrides.class)) {