ENGINE-712: equals() and hashCode() should only use id property

Please review