title: An Annotation argument must be a compile time constant
body: <p>i have seen <a href="https://stackoverflow.com/questions/49422901/kotlin-annotation-parameter-must-be-a-compile-time-constant">this</a> question. Similar error.But in my case it is different.</p>
  
  <p>While working with Room i was creating table. it was working fine. </p>
  
  <pre><code>@Daointerface 
  UserDao {
  @Query("SELECT * FROM user")
  fun getAll(): List&lt;User&gt;
  
  @Insert(onConflict = OnConflictStrategy.REPLACE)
  fun insert(user: User)
  
  @Delete
  fun delete(user: User)}
  </code></pre>
  
  <p>but then i found all table Names must be stored in a different class. like table name "user" - > Stored in different class.</p>
  
  <p>Eg.</p>
  
  <pre><code>class Table {
  companion object {
      const val USER_TABLE = "user"
  }}
  </code></pre>
  
  <p>But below code is not working . <strong>it is not picking up table name from Table class. Giving compile time error</strong> . "An Annotation argument must be a compile time constant" please help me out.What wrong in it</p>
  
  <pre><code>@Query("SELECT * FROM $Table.USER_TABLE")
  fun getAll(): List&lt;User&gt;
  </code></pre>