title: Hibernate boolean field mapping issue
body: <p>There is a boolean field in Entity :</p>
  
  <pre><code>@Column(name = "FREEFLAG", columnDefinition = "NUMBER(0,1) default 0", nullable = false)    
  public boolean getFreeflag() {
     return freeflag;
  }
  </code></pre>
  
  <p>database - Oracle, field FREEFLAG - NUMBER(0,1)</p>
  
  <p>I try to get object from db with Hibernate, but if the field in db is null i got a exception :</p>
  
  <pre><code>Exception in thread "main" org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type
  </code></pre>
  
  <p>Why default value doesn't work ?
  How I can resolve this problem on server side? I have to have 0 or 1 value in db.</p>
  
  <p>I got the solution - <a href="https://stackoverflow.com/questions/21983230/default-value-not-working-in-hibernate">Default value not working in hibernate</a>. But I still have to modify database. I have added DDL - alter table client modify freeflag default 0 not null
  DML - update client set freeflag = 0 where freeflag is null; commit</p>