Dao Query Annotates some Table Names with Single Quotes

  Kiến thức lập trình

I am just curious why some entity table names are autocompleted with single quotes and not the other table names on Dao Query.

Take a look at these tables:

Entity 1

@Entity(tableName = "account")
data class AccountEntity(
    @PrimaryKey(autoGenerate = false)
    @ColumnInfo(name = "id")
    val id: String,
    .... )

Entity 2

@Entity(tableName = "transaction")
data class TransactionEntity(
    @PrimaryKey(autoGenerate = false) 
    @ColumnInfo(name = "id") 
    val id: String,
    ..... )

Dao Query

enter image description here

Why is it that transaction is annotated with '' and not account or category tables on the above Dao Query?

LEAVE A COMMENT