title: Doesn't work setting default value of property in Hibernate
body: <p>I have a boolean property in my entity. Here's my annotations for it:</p>
  
  <pre><code>@Column(name = "IS_ACTIVE", nullable = false, columnDefinition="BIT DEFAULT 1", length = 1)
  public Boolean getActive() {
      return isActive;
  }
  </code></pre>
  
  <p>But <code>columnDefinition="BIT DEFAULT 1"</code> doen't work perfectly. Here's SQL code I get as result for generated table:</p>
  
  <pre><code>IS_ACTIVE BIT(1) NOT NULL,
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>And so when I try to save an instance of this class to the database  I get the exception:</p>
  
  <pre><code>`com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'IS_ACTIVE' cannot be null`
  </code></pre>
  
  <p>If I remove <code>nullable = false</code> property:</p>
  
  <pre><code>@Column(name = "IS_ACTIVE", columnDefinition="BIT DEFAULT 1", length = 1)
  public Boolean getActive() {
      return isActive;
  }
  </code></pre>
  
  <p>so I can save a created object in this case. But it's still the <strong>default value is not set</strong> and I get NULL in the value of this field in database.</p>
  
  <p>Any ideas please? I use MySQL Server 5.1 if it's important. I would be very grateful for any help. Thanks in advance!</p>