Entity repository generator default repository

Also this should be done only when namespace is set.