commit for entity.