fix #142 - generated entity equals incorrect
Merge pull request #406 from dennishendriksen/master

Bugfix: generated entity equals incorrect