// Set the association overrides if some are present.
// Process the attribute overrides first.
if (isAnnotationPresent(AssociationOverrides.class)) {
for (Object associationOverride : (Object[]) getAnnotation(AssociationOverrides.class).getAttributeArray("value")) {
addAssociationOverride(new AssociationOverrideMetadata((MetadataAnnotation) associationOverride, this));
}
}
// Process the single attribute override second.
if (isAnnotationPresent(AssociationOverride.class)) {
addAssociationOverride(new AssociationOverrideMetadata(getAnnotation(AssociationOverride.class), this));
}
// Set the order column if one is defined.
if (isAnnotationPresent(OrderColumn.class)) {
m_orderColumn = new OrderColumnMetadata(getAnnotation(OrderColumn.class), this);