add entity and repository