title: Mapping a document to a Java object that start with 'is'
body: <p>I am trying to map an firebase document to a POJO with the using the toObject(myObject.class) as it appears on <a href="https://firebase.google.com/docs/firestore/query-data/get-data" rel="nofollow noreferrer">https://firebase.google.com/docs/firestore/query-data/get-data</a> (under 'Custom Object').</p>
  
  <p>Everything works fine except for one thing:
  I have a boolean in the DB that is named 'isCancelled', but when I map the document to an object I get the following message:</p>
  
  <blockquote>
    <p>## WARN 20180 --- [nio-8081-exec-4] c.g.cloud.firestore.CustomClassMapper    : No setter/field for isCancelled found on class main.modals.ServiceRequest ##.</p>
  </blockquote>
  
  <p>I have tried changing the variable name in my POJO to 'cancelled' and changing the setters to be 'setIsCancelled' (Automatic creation of setters produced a 'setCancelled' without the 'is').</p>
  
  <p>** full SreviceRequest POJO:</p>
  
  <pre><code>package main.modals;
  
  import java.util.Date;
  
  public class ServiceRequest {
  private boolean fallDetected;
  private boolean isCancelled;
  private Date requestStartTime;
  private String requestType;
  private String requestedByPatientID;
  private String status;
  private Date updatedAt;
  
  public ServiceRequest() {
      super();
  }
  
  public boolean isFallDetected() {
      return fallDetected;
  }
  
  public boolean isCancelled() {
      return isCancelled;
  }
  
  public Date getRequestStartTime() {
      return requestStartTime;
  }
  
  public String getRequestType() {
      return requestType;
  }
  
  public String getRequestedByPatientID() {
      return requestedByPatientID;
  }
  
  public String getStatus() {
      return status;
  }
  
  public Date getUpdatedAt() {
      return updatedAt;
  }
  
  public void setFallDetected(boolean fallDetected) {
      this.fallDetected = fallDetected;
  }
  
  public void setCancelled(boolean isCancelled) {
      this.isCancelled = isCancelled;
  }
  
  public void setRequestStartTime(Date requestStartTime) {
      this.requestStartTime = requestStartTime;
  }
  
  public void setRequestType(String requestType) {
      this.requestType = requestType;
  }
  
  public void setRequestedByPatientID(String requestedByPatientID) {
      this.requestedByPatientID = requestedByPatientID;
  }
  
  public void setStatus(String status) {
      this.status = status;
  }
  
  public void setUpdatedAt(Date updatedAt) {
      this.updatedAt = updatedAt;
  }
  </code></pre>
  
  <p>}</p>