title: Spring - JPA - insert - not passing value for field that has default throws error
body: <p>Some of the non-nullable fields in table have default value. When inserting new rows into table via JPA, I do not want to pass any value for these fields so that they get the default values. However, when inserting new row via Spring JPA repository classes, I get an error that null values cannot be inserted. I noticed that the insert statement JPA sends to the database have all fields listed:</p>
  
  <pre><code>insert into table (field1, field2, field3) values ('abc',null,null);
  </code></pre>
  
  <p>Since field2 and field3 have null specified, the default values are not assigned and database throws error that null values cannot be inserted. Is there a workaround?</p>