EntityType is now an enum class.