Generate entities with repository