title: java.sql.Time : insert current time correctly
body: <p>I'm trying to insert current time into a <code>java.sql.Time</code> field, but I get this exception:</p>
  
  <pre><code>default message [Failed to convert property value of type 'java.lang.String' to required type 'java.sql.Time' for property 'entryDate'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [java.sql.Time] for value ''; nested exception is java.lang.IllegalArgumentException]
  </code></pre>
  
  <p>This is the code:</p>
  
  <pre><code>firm.setEntryDate(Time.valueOf(java.time.LocalDate.now().toString()));
  </code></pre>
  
  <p>Can anybody please advise what I am doing wrong? Thanks!</p>
  
  <p>Update: Firm.class</p>
  
  <pre><code>@JsonProperty("webshow")
  private String webShow;
  private Time entryDate;
  
  public String getWebShow () {
      return webShow;
  }
  
  public void setWebShow (String webShow) {
      this.webShow = webShow;
  }
  
  public Time getEntryDate () {
      return entryDate;
  }
  
  public void setEntryDate (Time entryDate) {
      this.entryDate = entryDate;
  }
  </code></pre>
  
  <p>Full exception:</p>
  
  <pre><code> Resolved exception caused by Handler execution: org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
  Field error in object 'firm' on field 'entryDate': rejected value []; codes [typeMismatch.firm.entryDate,typeMismatch.entryDate,typeMismatch.java.sql.Time,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [firm.entryDate,entryDate]; arguments []; default message [entryDate]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.sql.Time' for property 'entryDate'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [java.sql.Time] for value ''; nested exception is java.lang.IllegalArgumentException]
  </code></pre>