Commit 2187aa2d authored by Trio Saputra's avatar Trio Saputra

entities

parent e2407e30
...@@ -3,8 +3,10 @@ package com.example.yourcashiertest.entities; ...@@ -3,8 +3,10 @@ package com.example.yourcashiertest.entities;
import android.os.Parcel; import android.os.Parcel;
import android.os.Parcelable; import android.os.Parcelable;
import androidx.room.Entity;
import androidx.room.PrimaryKey; import androidx.room.PrimaryKey;
@Entity(tableName = "products")
public class Product implements Parcelable { public class Product implements Parcelable {
@PrimaryKey(autoGenerate = true) @PrimaryKey(autoGenerate = true)
private long id; private long id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment