Mapping MySql Date into java object
<p>in my MySql database I store date as DATE type so I store only YYYY-MM-DD without any information about time (in the other table I use DATETIME to store also time information).
My entity is :</p>

<pre><code>@Entity
@Table(name = "clientlicense", catalog = "ats")
public class ClientLicense implements java.io.Serializable{

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    private Integer idClientLicense;
    private Date startDate;
    private Date endDate;
    private int counter;
    private String macAddress;
    private String cpuId;
</code></pre>

<p>But when i get <code>startDate</code> and <code>endDate</code> from my WebUi I receive even the time like 2016-01-29 00:00:00.0
How can I store only the date as into database? Do I have to work in my HTML code?Thanks</p>