Changes

Jump to: navigation, search

An Android Room Database and Repository Tutorial

148 bytes added, 19:44, 15 January 2019
Building the Entity
</pre>
== Building Building the Entity ==
This project will begin by creating the entity which defines the schema for the database table. The entity will consist of an integer for the product id, a string column to hold the product name and another integer value to store the quantity. The product id column will serve as the primary key and will be auto-generated. Table 68-2 summarizes the structure of the entity:
[[Image:.png]]{| class="wikitable"|-! Column !! Data Type|-| productid || Integer / Primary Key / Auto Increment|-| productname || String|-| productquantity || Integer|}

Navigation menu