64.3 Understanding Entities
Each database table will have associated with it an entity class. This class defines the schema for the table and takes the form of a standard Java class interspersed with some special Room annotations. An example Java class declaring the data to be stored within a database table might read as follows:
public class Customer {
private int id;
private String name;
private string address;
public Customer(String name, String address) {
this.id = id;
this.name = name;
this.address = address;
}
public int getId() {
return this.id;
}
...