title: Why do I always get NULL in JSF fetching postgresql boolean field?
body: <p>I have Postgresql 8.4 table</p>
  
  <pre><code>CREATE TABLE users
  (
    username character varying(50) NOT NULL,
    "password" character varying(50) NOT NULL,
    enabled boolean NOT NULL,
    type_of_signature boolean NOT NULL,
    companyusers2_id integer NOT NULL,
    numberorganizac character(8) NOT NULL,
  );
  </code></pre>
  
  <p>In that table i have just one row: ""admin";"admin";TRUE;TRUE;1;"12345678"</p>
  
  <p>I have JPA</p>
  
  <pre><code>@Entity
  @Table(name="users")
  public class Users implements Serializable {
      ...
      private boolean typeOfSignature;
      ...
  
      @Column(name="type_of_signature")
      public boolean getTypeOfSignature() {
          return this.typeOfSignature;
      }
  
      public void setTypeOfSignature(boolean typeOfSignature) {
          this.typeOfSignature = typeOfSignature;
      }
      ...
  }
  </code></pre>
  
  <p>I have JSF</p>
  
  <pre><code>&lt;h:outputText value="Type of signature is NULL" rendered="#{curUser.typeOfSignature == null}"/&gt;
  &lt;h:outputText value="Type of Signature is TRUE" rendered="#{curUser.typeOfSignature}"/&gt;
  &lt;h:outputText value="Type of Signature is FALSE" rendered="#{!curUser.typeOfSignature}"/&gt;
  </code></pre>
  
  <p>I always get "Type of signature is NULLType of Signature is FALSE" at result page.</p>
  
  <p>But I also have method in my bean</p>
  
  <pre><code>if(getCurUser().getTypeOfSignature())
      {
          jpaBean.pushSignature(dataItem, 1);
      }
      else
      {
          jpaBean.pushSignature(dataItem, 2);
      }
  </code></pre>
  
  <p>And it works right depending on type of user's signature.</p>
  
  <p>Why I always get NULL in JSF? Or I'm a newby and have done something wrong?</p>