Store string time in sql.Time through spring @RequestBody
<p>I need to store time (hours and minutes) in backend. The data comes from UI in json and have the following view "10:00" as expamle. In backend I decided to keep this time in <code>sql.Time</code> type. The time comes to class through spring <code>@RequestBody</code> and consiquntly lead to exception: <code>org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Instantiation of [simple type, class java.sql.Time] value failed: null (through reference chain: biz.models.CarWash["firstShift"]);</code></p>

<p>How to put my time in sql.Time field through <code>@RequestBody</code> annotation? 
And are that good ideas to keep time in <code>sql.Time</code> type and send it from UI in json as "10:00" ?</p>

<p>My controller:</p>

<pre><code>@RequestMapping(value = "/carwash/add", method = RequestMethod.PUT, produces = "application/json;charset=UTF-8")
@ResponseStatus(HttpStatus.OK)
@ResponseBody
public Long addCarWashPUT(@RequestBody CarWash carWash) throws ParseException {
    System.out.println(carWash);
    return 999L;
}
</code></pre>