Nezteb
07/31/2019, 5:59 PMdata class
but I don’t think I can apply annotations to those fields.Mark Murphy
07/31/2019, 6:01 PMdata
class properties in general can work -- this is from the Android Room documentation:
@Entity
data class User(
@PrimaryKey var id: Int,
var firstName: String?,
var lastName: String?
)
so, try @get:YourAnnotation
or @field:YourAnnotation
and see if it worksNezteb
07/31/2019, 6:06 PM