title: Kotlin - how to get annotation attribute value
body: <p>say, i have one Kotlin class with annotations:</p>
  
  <pre><code>@Entity @Table(name="user") data class User (val id:Long, val name:String)
  </code></pre>
  
  <p>How can i get the value of name attribute from @Table annotation?</p>
  
  <pre><code>fun &lt;T&gt; tableName(c: KClass&lt;T&gt;):String {
      // i can get the @Table annotation like this:
      val t = c.annotations.find { it.annotationClass == Table::class }
      // but how can i get the value of "name" attribute from t?
  }
  </code></pre>