title: PostgreSQL: column "BOOLEAN_VALUE" is of type numeric but expression is of type boolean Hint: You will need to rewrite or cast the expression
body: <p>I was trying to insert a new data into both database server.
  This one works in Oracle 11g but does not work in PostgreSQL 9+.
  I cannot trace the issue as the error says:</p>
  
  <p><strong>column "BOOLEAN_VALUE" is of type numeric but expression is of type boolean  Hint: You will need to rewrite or cast the expression.</strong></p>
  
  <p>The column is nullable and in codes below, we do not set any data. </p>
  
  <pre><code>Table Def:(Numeric)
  "BOOLEAN_VALUE" NUMBER(1,0)
  
  Domain:
  @Column(name = "BOOLEAN_VALUE")
  public Boolean getBooleanValue() {
      return booleanValue;
  }
  
  public void setBooleanValue(Boolean booleanValue) {
      this.booleanValue = booleanValue;
  }
  
  How data insertion:
  MyData myData = new MyData();
  myData.setMoneyValue("$ 120")
  myServiceRepository.save(myData);
  </code></pre>
  
  <p>We did passing 0 or 1 as default value but none has worked.
  Hope someone can give me some light.</p>