I don't really know why I have this error. The code seems pretty straight forward.
@Entity(indices = {@Index("clientLocalId")})
.
.
private @PrimaryKey String clientLocalId;
public String getClientLocalId() {
return clientLocalId;
}
public void setClientLocalId(long idInvoice, String receipt) {
this.clientLocalId = String.valueOf(idInvoice) + " " + receipt;
}
I tried to changed the name in just client, restarted and cleared caches, same error.
error: Cannot find setter for field. private @PrimaryKey String clientLocalId; ^
Any idea is appreciated. Thanks in advance !