say, i have one Kotlin class with annotations:
@Entity @Table(name="user") data class User (val id:Long, val name:String)
如何从@Table annotation获取name属性的值?
fun <T> tableName(c: KClass<T>):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?
}