vivekneel
06/23/2017, 6:02 AM@Entity(
tableName = "template"
)
data class ListTemplate (
@PrimaryKey(autoGenerate = true) var id: Long = 0L,
@SerializedName("name") var name: String = "",
@SerializedName("thumbnail") var thumbnail: String= "",
@SerializedName("category") var category: String = "",
@SerializedName("totalAmount") var totalAmount: Long = 0L,
@SerializedName("currency") var currency: String = ""
)
studio is throwing an error saying Error:Type of the parameter must be a class annotated with @Entity or a collection/array of it.
1 reply
@here any input on this is much appreciated. Been trying to solve this error ,no luck