title: Integer getting default value 0 where it required to be NULL in Java
body: <p>My requirement looks simple, but I feel I'm doing something wrong in code.</p>
  
  <p>All I need is to insert "null" in Oracle Database when nothing is passed from InputText field of UI.</p>
  
  <p><b>PaymantSpecFormPage.xhtml</b></p>
  
  <pre><code>&lt;h:inputText id="startWeek" value="#{flowScope.paymentSpecVO.paymStartWk}" styleClass="inputTypeForm" maxlength="4"/&gt;
  </code></pre>
  
  <p><b>PaymentSpecVO.java</b></p>
  
  <pre><code>public class PaymentSpecVO extends BaseVO&lt;PaymentSpec&gt; {
     private Integer paymStartWk;
  
     public Integer getPaymStartWk() {
        return paymStartWk;
     }
     public void setPaymStartWk(Integer paymStartWk) {
        this.paymStartWk = paymStartWk;
     }
  }
  </code></pre>
  
  <p>And in my DB Table</p>
  
  <pre><code>COLUMN_NAME      DATA_TYPE    NULLABLE    DEFAULT_VALUE
  ------------     ---------    --------    -------------
  PAYM_START_WK    NUMBER(4,0)    Yes             null
  </code></pre>
  
  <p>And when I enter nothing in inputText, then instead of null, 0 is getting entered in Table, which has different meaning in my business logic, please help me to do necessary code changes.</p>