Allow entity() and repository() to take in class name in String

Why the switch?

`Object.const_get("#{ entity.name }#{ REPOSITORY_SUFFIX }")` will raise an exception if the class is not found. The switch will not.

I don't know which is desired/expected behavior