/**
 * Created by Siclait on 19/6/16.
 */

package Entity;

public class DateLog {
}

@@ -57,29 +57,1282 @@
 y;%0A%0A
-public class DateLog %7B
+import javax.persistence.Column;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.ManyToOne;%0Aimport java.io.Serializable;%0Aimport java.sql.Date;%0A%0A@Entity%0Apublic class DateLog implements Serializable %7B%0A%0A    private static final long serialVersionUID = 1L;%0A%0A    // Attributes%0A    @Id%0A    @Column(name = %22ID%22)%0A    private Integer id;%0A%0A    @Column(name =%22DATE%22)%0A    private Date date;%0A%0A    @ManyToOne%0A    private URL url;%0A%0A    // Constructors%0A    public DateLog()%7B%0A%0A    %7D%0A%0A    public DateLog(URL url)%7B%0A%0A        this.setUrl(url);%0A%0A        java.util.Date utilDate = new java.util.Date();%0A        this.setDate(new Date(utilDate.getTime()));%0A%0A    %7D%0A%0A    public DateLog(Integer id, URL url)%7B%0A%0A        this.setId(id);%0A        this.setUrl(url);%0A%0A        java.util.Date utilDate = new java.util.Date();%0A        this.setDate(new Date(utilDate.getTime()));%0A%0A    %7D%0A%0A    // Getters & Setters%0A    public Integer getId() %7B%0A        return id;%0A    %7D%0A%0A    public void setId(Integer id) %7B%0A        this.id = id;%0A    %7D%0A%0A    public Date getDate() %7B%0A        return date;%0A    %7D%0A%0A    public void setDate(Date date) %7B%0A        this.date = date;%0A    %7D%0A%0A    public URL getUrl() %7B%0A        return url;%0A    %7D%0A%0A    public void setUrl(URL url) %7B%0A        this.url = url;%0A    %7D
 %0A%7D%0A

Create DateLog POJO Entity