boolean isJoinedByTable = relationField.isAnnotationPresent(JoinTable.class);
if (relationField.isAnnotationPresent(AssociationOverride.class))
{
AssociationOverride annotation = relationField.getAnnotation(AssociationOverride.class);
JoinColumn[] joinColumns = annotation.joinColumns();
//validate if more than one join column is defined
validateJoinColumns(joinColumns);
JoinTable joinTable = annotation.joinTable();