title: How to set default value to JPA entity and liquibase
body: <p>I ha ve JPA entity, I have added one boolean property in it:</p>
  
  <pre><code>@Column(name = "attestation_reception_du_ok") private boolean attestationReceptionDuOk;
  </code></pre>
  
  <p>Then I ran <strong>liquibase:diff</strong> to generate the xml file to update my database.</p>
  
  <p>Then I realized thet I needed to add a default value to my property.
  So I updated the xml liquibase generated file like this :</p>
  
  <pre><code>&lt;addColumn tableName="collaborateur"&gt;
           &lt;column name="attestation_reception_du_ok" type="bit"
                   defaultValueBoolean="false"/&gt;
  &lt;/addColumn&gt;
  </code></pre>
  
  <p>I ran liquibase, it updated the mysql table with the default value.</p>
  
  <p>But then I ran liquibase again and I add this change generated : </p>
  
  <pre><code>&lt;dropDefaultValue columnDataType="boolean default 0"
                          columnName="attestation_reception_du_ok"
                          tableName="collaborateur"/&gt;
  </code></pre>
  
  <p>So I decided to update my JPA entity in order to tell liquibase to keep the default value option:</p>
  
  <pre><code>@Column(name = "attestation_reception_du_ok" , columnDefinition = "bit  default 0")
      private boolean attestationReceptionDuOk;
  </code></pre>
  
  <p>But even after added the default value in the JPA entity, liquibase keeps telling me to drop the default value.</p>
  
  <p>How can I do in order to tell liquibase to keep the default value?</p>
  
  <p>Thanks.</p>