public ArrayList<Employee> getAllEmployees(Connection conn) {
         
        ArrayList<Employee> employees = new ArrayList();
        PreparedStatement statement = null;
        Employee es = null;
        boolean tjek = false;
        int employeeNo = 0;
        String SQLString = "SELECT * FROM medarbejder NATURAL JOIN medarbejderdetails";
        try {
            statement = conn.prepareStatement(SQLString);
            ResultSet rs = statement.executeQuery();
            while (rs.next()) {
                es = getSingleEmployee(employeeNo = rs.getInt(1), conn);
                if (employees.isEmpty()) {
                    employees.add(es);
                }else
                {
//                    tjek = 1;
                for(int i = 0; i < employees.size(); i++)
                {
                if (employees.get(i).getEmployeeID() != es.getEmployeeID()) {
                    tjek = true;
                }else
                {
                    for(int j = 0; j < employees.get(i).getDates().size(); j++)
                    {
                    if(!employees.get(i).getDates().get(j).equals(es.getDates().get(j)))
                    {
                        employees.get(i).getDates().add(es.getDates().get(j));
                    }
                    }
                    tjek = false;
                    break;
                }
                }
                if(tjek)
                {
                    employees.add(es);
                }
                }
            }
        } catch (Exception e) {
            System.out.println("Fejl i TheMapper - getAllEmployees");
        }
        return employees;
    }