I am trying to set room query parameters by Enum:
enum class Status(val status:Int){
NOTANSWERED(1),
ANSWERED(2),
WRONGANSWERED(3)
}
the query:
@Query("SELECT * FROM questions where status=${Status.NOTANSWERED.status}")
suspend fun getNotAnsweredQuestions()
IDE get error:
An Annotation argument must be a compile time constant
I have also read this topic but not solved my issue