Remove native hashCode and operator== methods and supporting code from Entity.