title: How JPA handles null values in entities?
body: <p>Let's say I have entity:</p>
  
  <pre><code>@Entity
  public class foo(){
    String field = null;
    //getter and setter
  }
  </code></pre>
  
  <p>In database column <code>field</code> has default value "bar".</p>
  
  <p>If I persist this entity without setting <code>field</code> property to anything other than null, will the field column in inserted record have value <code>null</code> or <code>bar</code>? </p>
  
  <p>(In the other words, will the null field be included in insert statement with <code>null</code> value or will be skipped in insert statement and default value will be used?)</p>