Skip to content

Instantly share code, notes, and snippets.

@hieuwu
Last active Mar 21, 2022
Embed
What would you like to do?
Product Entity
@Entity(tableName = "products")
data class Product(
@PrimaryKey
@NonNull
@ColumnInfo(name = "productId")
val id: String,
@ColumnInfo(name = "name")
var name: String?,
@ColumnInfo(name = "price")
var price: Double
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment