@@ -0,0 +1,1546 @@
+/**%0A * Created by Djidjelly Siclait on 10/23/2016.%0A */%0Apackage com.clinichelper.Entity;%0A%0Aimport com.clinichelper.Tools.Task;%0A%0Aimport javax.persistence.Column;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.Transient;%0Aimport javax.validation.constraints.NotNull;%0Aimport java.io.Serializable;%0Aimport java.util.UUID;%0A%0A@Entity%0Apublic class Chore implements Serializable%7B%0A    // Attributes%0A    @Id%0A    private String jascId;%0A    @NotNull%0A    private Task type;%0A    @NotNull%0A    @Column(length = 500)%0A    private String description;%0A    @Transient%0A    private boolean completed;%0A%0A    // Constructors%0A    public Chore()%7B%0A%0A    %7D%0A%0A    public Chore(Task type, String description)%7B%0A        this.setJascId(%22JASC-CH-%22 + UUID.randomUUID().toString().split(%22-%22)%5B0%5D.toUpperCase());%0A        this.setType(type);%0A        this.setDescription(description);%0A        this.setCompleted(false);%0A    %7D%0A%0A    // Getters and Setters%0A    public String getJascId() %7B%0A        return jascId;%0A    %7D%0A%0A    public void setJascId(String jascId) %7B%0A        this.jascId = jascId;%0A    %7D%0A%0A    public Task getType() %7B%0A        return type;%0A    %7D%0A%0A    public void setType(Task type) %7B%0A        this.type = type;%0A    %7D%0A%0A    public String getDescription() %7B%0A        return description;%0A    %7D%0A%0A    public void setDescription(String description) %7B%0A        this.description = description;%0A    %7D%0A%0A    public boolean isCompleted() %7B%0A        return completed;%0A    %7D%0A%0A    public void setCompleted(boolean completed) %7B%0A        this.completed = completed;%0A    %7D%0A%7D%0A

Create new Chore Entity