title: android room databaseview can't select from table
body: <p>I created a DatabaseView, to join two tables. When I am doing my query, I am not being able to select from the database view table. But it can be a return type.
  It's giving me cannot resolve symbol EmployeeWithRole.
  I'm using roomVersion = '2.1.0-alpha04</p>
  
  <p>My entities:</p>
  
  <pre><code>@Entity(tableName = "EmployeeRole")
     data class EmployeeRole(
      @PrimaryKey
      val id: Id,
      @ColumnInfo(name = "role")
      val role: String,
      @ColumnInfo(name = "parentRole")
      val parentRole: Id?)
  
  
  @Entity(tableName = "Employee",
      foreignKeys = [
          ForeignKey(entity = EmployeeRole::class,
                  onDelete = ForeignKey.CASCADE,
                  parentColumns = ["id"],
                  childColumns = ["currentRoleId"]
          )])
   data class Employee(
      @PrimaryKey
      val id: Id,
      @ColumnInfo(name = "firstName")
      val firstName: String,
      @ColumnInfo(name = "lastName")
      val lastName: String,
      @ColumnInfo(name = "currentRoleId")
      var currentRoleId: Id,
      @ColumnInfo(name = "pictureUrl")
      var pictureUrl: String)
  </code></pre>
  
  <p>My Dao:</p>
  
  <pre><code>@Dao
  Interface EmployeeWithRoleDao {
    @Query(" SELECT * FROM EmployeeWithRole ")
     fun getAllEmployees(): List&lt;EmployeeWithRole&gt;
  }
  </code></pre>
  
  <p>My database view: </p>
  
  <pre><code>import androidx.room.DatabaseView
  import androidx.room.Embedded
  
  @DatabaseView("""
  SELECT Employee.*, $employeeRoleParams FROM Employee
    INNER JOIN EmployeeRole ON Employee.currentRoleId = EmployeeRole.id
  """)
  
   data class EmployeeWithRole(
      @Embedded
      val employee: Employee,
      @Embedded(prefix = employeeRoleP)
      val employeeRole: EmployeeRole
  )
  
  private const val employeeRoleP = "EmployeeRole"
  private const val employeeRoleParams = """
  $employeeRoleP.id as ${employeeRoleP}_id,
  $employeeRoleP.role as ${employeeRoleP}_role,
  $employeeRoleP.parentRole as ${employeeRoleP}_parentRole
  """
  </code></pre>