protected void processIndexes() {
// TODO: This method is adding annotation metadata to XML metadata. This
// is wrong and does not follow the spec ideology. XML metadata should
// override not merge with annotations.
if (isAnnotationPresent(Index.class)) {
m_indexes.add(new IndexMetadata(getAnnotation(Index.class), this));
}
if (isAnnotationPresent(Indexes.class)) {
for (Object index : getAnnotation(Indexes.class).getAttributeArray("value")) {
m_indexes.add(new IndexMetadata((MetadataAnnotation) index, this));
}
}
for (IndexMetadata indexMetadata : m_indexes) {
indexMetadata.process(getDescriptor(), null);