title: How do you store a Java Boolean type variable in a PostgreSQL table with corresponding column data type defined as "bit"?
body: <p>Now, the data type of the variable in my Java class is "boolean". I want to store it in a PostgreSQL table. The column in which I want to store my data has data type defined as "bit". But when I try to save the object which has this boolean variable, I get the error: </p>
  
  <pre><code>ERROR: column "isdeleted" is of type bit but expression is of type boolean
  </code></pre>
  
  <p>I'm using Hibernate to store the data. 
  My code snippet for defining and mapping my variable:</p>
  
  <pre><code>@Column(name = "isDeleted")
  private boolean isDeleted;
  </code></pre>
  
  <p>How do I save my object? Thank you!</p>