This work very well
@Entity
data class OrderVoucher(
@PrimaryKey var id: Int? = null,
var orderId: Int? = null,
var printCount: Int? = null
}
but when I add defult values
var printCount: Int=0
roomdb says does not know about printCount
The columns returned by the query does not have the fields [printCount]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…