// Check for target class specified at annotation
if (targetEntity == null && null != m2mAnnotation.targetEntity()
&& !m2mAnnotation.targetEntity().getSimpleName().equals("void"))
{
targetEntity = m2mAnnotation.targetEntity();
}
Relation relation = new Relation(relationField, targetEntity, relationField.getType(), m2mAnnotation.fetch(),
Arrays.asList(m2mAnnotation.cascade()), Boolean.TRUE, m2mAnnotation.mappedBy(),
Relation.ForeignKey.MANY_TO_MANY);