public Task(int taskID, int parentID, String taskName, Type type, Statuss status, Customer customer, User user, Date startDate, Date endDate, int estimatedtime, int priority, String description, ArrayList<User> userOnTask) {
        this.taskID = taskID;
        this.parentID = parentID;
        this.taskName = taskName;
        this.type = type;
        this.status = status;
        this.customer = customer;
        this.user = user;
        this.startDate = startDate;
        this.endDate = endDate;
        this.estimatedtime = estimatedtime;
        this.priority = priority;
        this.description = description;
        taskList = new ArrayList<>();
        this.userOnTask = new ArrayList<>();
    }