Some update for class Entity.