I have the following Entity
public class User {
@PrimaryKey
private final long id;
private String _id;
private String userName;
private String email;
}
However when I try to create table for this entity in android using room persistence library, I get the following error.
Error:(18, 20) error: Ambiguous getter for Field(element=_id, name=_id, type=java.lang.String, affinity=TEXT, columnName=_id, parent=null, indexed=false). All of the following match: getId, get_id. You can @Ignore the ones that you don't want to match.
The _id field is included so that I can directly translate the responses from the node.jsapi hooked up to a mongodb database.