title: Room return different entity in DAO
body: <p>I have a DAO</p>
  <pre><code>@Dao
  interface UserDao {
  
       @Query(&quot;SELECT * FROM user_entity&quot;)
       fun getAll(): List&lt;UserEntity&gt;
  
       @Query(&quot;SELECT COUNT(id) AS count FROM user_entity&quot;)
       fun getCombined(): UserCombinedEntity
  }
  </code></pre>
  <p>The classes are</p>
  <pre><code>@Entity
  data class UserEntity(
      @ColumnInfo
      val id: Long,
      @ColumnInfo
      val name: String
  )
  
  data class UserCombinedEntity(
      val count: Int
  )
  </code></pre>
  <p>But this gives me an error that</p>
  <blockquote>
  <p>A failure occurred while executing
  org.jetbrains.kotlin.gradle.internal.KaptExecution</p>
  </blockquote>
  <p>Can ROOM actually support this?</p>
  <hr />
  <p>This is a minimal example of the problem. Of course <code>UserCombinedEntity</code> has more fields.</p>