equals for AIdEntity