compare entity data, not a object