Equality per entity type.
Merge pull request #1 from marianuspotratz/equalsPerEntityType

Equality per entity type