// Set the join columns if some are present.
// Process all the join columns first.
if (isAnnotationPresent(JPA_JOIN_COLUMNS)) {
for (Object joinColumn : (Object[]) getAnnotation(JPA_JOIN_COLUMNS).getAttributeArray("value")) {
m_joinColumns.add(new JoinColumnMetadata((MetadataAnnotation)joinColumn, this));
}
}
// Process the single key join column second.
if (isAnnotationPresent(JPA_JOIN_COLUMN)) {
m_joinColumns.add(new JoinColumnMetadata(getAnnotation(JPA_JOIN_COLUMN), this));
}
// Set the join fields if some are present.
if (isAnnotationPresent("org.eclipse.persistence.nosql.annotations.JoinFields")) {
for (Object joinColumn : (Object[]) getAnnotation("org.eclipse.persistence.nosql.annotations.JoinFields").getAttributeArray("value")) {
m_joinColumns.add(new JoinColumnMetadata((MetadataAnnotation)joinColumn, this));
}
}
// Process EIS/NoSQL join field.
if (isAnnotationPresent("org.eclipse.persistence.nosql.annotations.JoinField")) {
m_joinColumns.add(new JoinColumnMetadata(getAnnotation("org.eclipse.persistence.nosql.annotations.JoinField"), this));
}
// Set the join table if one is present.
if (isAnnotationPresent(JPA_JOIN_TABLE)) {
m_joinTable = new JoinTableMetadata(getAnnotation(JPA_JOIN_TABLE), this);