package com.epita.mti.datemine.data.Entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import lombok.Getter;
import lombok.Setter;

/**
 *
 * @author leduc_t
 */
public class Task extends AbstractEntity {

    /**
     * The task id.
     */
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column
    @Getter @Setter private Integer id;

    /**
     * The task name.
     */
    @Column
    @Getter @Setter private String name;
    /**
     * The task deadline.
     */
    @Column
    @Getter @Setter private Date deadline;
    /**
     * The task description.
     */
    @Column
    @Getter @Setter private String description;
    /**
     * The task progress (in %).
     */
    @Column
    @Getter @Setter private Integer progress;
    /**
     * The task priority (default 0).
     */
    @Column
    @Getter @Setter private Integer priority;
    /**
     * The task status
     * (code to say if the task is started, in progress, submit or finished).
     */
    @Column
    @Getter @Setter private Integer status;
    // Parent task
    // Project

    @Override
    public String asCSV() {
        return toCSV(id, name, deadline, description,
                     progress, priority, status);
    }
}

@@ -94,16 +94,49 @@
 Column;%0A
+import javax.persistence.Entity;%0A
 import j
@@ -265,75 +265,254 @@
 ort 
-lombok.Getter;%0Aimport lombok.Setter;%0A%0A/**%0A *%0A * @author leduc_t%0A */
+javax.xml.bind.annotation.XmlRootElement;%0Aimport lombok.AllArgsConstructor;%0Aimport lombok.Getter;%0Aimport lombok.NoArgsConstructor;%0Aimport lombok.Setter;%0A%0A/**%0A *%0A * @author leduc_t%0A */%0A@Entity%0A@XmlRootElement%0A@AllArgsConstructor @NoArgsConstructor
 %0Apub

add task.java to the last commit