addAssociationOverride(new AssociationOverrideMetadata(getAnnotation(AssociationOverride.class), this));
}
// Set the column if one if defined.
if (isAnnotationPresent(Column.class)) {
m_column = new ColumnMetadata(getAnnotation(Column.class), this);
}
// Set the collection table if one is defined.
if (isAnnotationPresent(CollectionTable.class)) {
setCollectionTable(new CollectionTableMetadata(getAnnotation(CollectionTable.class), this, true));
}
if (isAnnotationPresent(CompositeMember.class)) {
m_compositeMember = (String) getAnnotation(CompositeMember.class).getAttributeString("value");
}
// Set the order if one is present.
if (isAnnotationPresent(OrderBy.class)) {
m_orderBy = (String) getAnnotation(OrderBy.class).getAttributeString("value");
}
// Set the map key if one is defined.
if (isAnnotationPresent(MapKey.class)) {
m_mapKey = new MapKeyMetadata(getAnnotation(MapKey.class), this);
}
// Set the map key class if one is defined.
if (isAnnotationPresent(MapKeyClass.class)) {
m_mapKeyClass = getMetadataClass((String) getAnnotation(MapKeyClass.class).getAttribute("value"));
}
// Set the map key enumerated if one is defined.
if (isAnnotationPresent(MapKeyEnumerated.class)) {
m_mapKeyEnumerated = new EnumeratedMetadata(getAnnotation(MapKeyEnumerated.class), this);
}
// Set the map key temporal if one is defined.
if (isAnnotationPresent(MapKeyTemporal.class)) {
m_mapKeyTemporal = new TemporalMetadata(getAnnotation(MapKeyTemporal.class), this);
}
// Set the map key join columns if some are present.
// Process all the map key join columns first.
if (isAnnotationPresent(MapKeyJoinColumns.class)) {
for (Object joinColumn : (Object[]) getAnnotation(MapKeyJoinColumns.class).getAttributeArray("value")) {
m_mapKeyJoinColumns.add(new JoinColumnMetadata((MetadataAnnotation) joinColumn, this));
}
}
if (isAnnotationPresent(MapKeyJoinColumn.class)) {
m_mapKeyJoinColumns.add(new JoinColumnMetadata(getAnnotation(MapKeyJoinColumn.class), this));
}
// Set the map key column if one is defined.
if (isAnnotationPresent(MapKeyColumn.class)) {
m_mapKeyColumn = new ColumnMetadata(getAnnotation(MapKeyColumn.class), this);
}
// Set the convert key if one is defined.
if (isAnnotationPresent(MapKeyConvert.class)) {
m_mapKeyConvert = (String) getAnnotation(MapKeyConvert.class).getAttribute("value");