title: Set 24:00 as java time
body: <p>I'm trying to map "24:00:00" as time to a model and then using model to save data in postgres DB.</p>
  
  <p>The problem is whenever I'm trying to set "24:00:00" as value to any of <strong>java.util.Date</strong>, <strong>java.sql.Time</strong> or <strong>java.time.LocalTime</strong> the value is getting adjusted to "00:00:00" before saving "24:00:00" to DB as these datatypes only support hours in the range of "<em>0-23</em>".</p>
  
  <p>I'm not able to figure out how to achieve this, I tried looking at the similar questions but to no avail. Any suggestions how can I manage to map "24:00:00"?</p>