public void processConverts() {
if (m_converts.isEmpty()) {
// Look for a Converts annotation.
if (isAnnotationPresent(JPA_CONVERTS)) {
for (Object convert : (Object[]) getAnnotation(JPA_CONVERTS).getAttributeArray("value")) {
processConvert(new ConvertMetadata((MetadataAnnotation) convert, this));
}
} else {
// Look for a Convert annotation
if (isAnnotationPresent(JPA_CONVERT)) {
processConvert(new ConvertMetadata(getAnnotation(JPA_CONVERT), this));
}
}
} else {
if (isAnnotationPresent(JPA_CONVERT)) {
getLogger().logConfigMessage(MetadataLogger.OVERRIDE_ANNOTATION_WITH_XML, getAnnotation(JPA_CONVERT), getJavaClassName(), getLocation());