if (isJoinedByMap)
{
relation.setMapKeyJoinClass(mapKeyClass);
MapKeyJoinColumn mapKeyJoinColumnAnn = relationField.getAnnotation(MapKeyJoinColumn.class);
if (mapKeyJoinColumnAnn != null)
{
String mapKeyJoinColumnName = mapKeyJoinColumnAnn.name();
relation.setJoinColumnName(mapKeyJoinColumnName);
}