I have the following Entity
public class User {
@PrimaryKey
private final long id;
private String _id;
private String userName;
private
For Room :
In my case
public String getpBSalesTotal() {
return pBSalesTotal;
}
public void setpBSalesTotal(String pBSalesTotal) {
this.pBSalesTotal = pBSalesTotal;
}
is the previous POJO class that i want as a table in my database.
I have just changed small "" p "" to capital ""P"" and that solved my error
. Like below
public String getPBSalesTotal() {
return pBSalesTotal;
}
public void setPBSalesTotal(String pBSalesTotal) {
this.pBSalesTotal = pBSalesTotal;
}
to generate this type of
POJO form JSON
you can use this LINK. It worked for Room.