title: Hibernate default values
body: <p>Is there a way with hibernate to define default values for each field and for the sake of database size write null instead of these default values?</p>
  
  <p>For inst. let's say the default value for String is "". I would like Hibernate to:</p>
  
  <ol>
  <li>return "" for each field, that has NULL in database.</li>
  <li>write NULL to database, when I try to write ""</li>
  </ol>
  
  <p>Of course, I can write thousands of Getters and Setters, but can it be done automatically?</p>