protected void processEntityGraphs() {
if (m_namedEntityGraphs.isEmpty()) {
// Look for an NamedEntityGraphs annotation.
if (isAnnotationPresent(JPA_ENTITY_GRAPHS)) {
for (Object entityGraph : (Object[]) getAnnotation(JPA_ENTITY_GRAPHS).getAttributeArray("value")) {
new NamedEntityGraphMetadata((MetadataAnnotation) entityGraph, this).process(this);
}
} else {
// Look for a NamedEntityGraph annotation
if (isAnnotationPresent(JPA_ENTITY_GRAPH)) {
new NamedEntityGraphMetadata(getAnnotation(JPA_ENTITY_GRAPH), this).process(this);
}
}
} else {
// Process the named entity graphs from XML.
if (isAnnotationPresent(JPA_ENTITY_GRAPH)) {