bugfix equals() for @Entity classes with no primary key