package com.nmakademija.nmaakademija.entity;

import java.util.Date;
import java.util.List;

public class Event {

    private int id;
    private String name;

    private Date startTime;
    private Date endTime;

    private List<Integer> lecturers;
    private int section;


    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public Date getStartTime() {
        return startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public List<Integer> getLecturer() {
        return lecturers;
    }

    public int getSection() {
        return section;
    }


}

package com.nmakademija.nmaakademija.entity;

import java.util.List;

public class Event {

    private int id;
    private String name;

    private long startTime;

    private long endTime;

    private List<Integer> lecturers;
    private int section;


    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public long getStartTime() {
        return startTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public List<Integer> getLecturer() {
        return lecturers;
    }

    public int getSection() {
        return section;
    }


}

--- 
+++ 
@@ -1,5 +1,6 @@
 package com.nmakademija.nmaakademija.entity;
 
+import java.util.Date;
 import java.util.List;
 
 public class Event {
@@ -7,9 +8,8 @@
     private int id;
     private String name;
 
-    private long startTime;
-
-    private long endTime;
+    private Date startTime;
+    private Date endTime;
 
     private List<Integer> lecturers;
     private int section;
@@ -23,11 +23,11 @@
         return name;
     }
 
-    public long getStartTime() {
+    public Date getStartTime() {
         return startTime;
     }
 
-    public long getEndTime() {
+    public Date getEndTime() {
         return endTime;
     }
 
Change event startTime, endTime to Date
