Fixed generating join column names for self referencing entity.
Merge pull request #669 from hason/many_to_many

Fixed generating column names for self referencing entity.