public List<EmployeeVacationDuration> getEmployeeTotalVacationDurationsCriteria()
	{
		CriteriaBuilder builder = manager.getCriteriaBuilder();
		CriteriaQuery<EmployeeVacationDuration> critQuery = builder.createQuery(EmployeeVacationDuration.class);
		
		Root<Employee> empRoot = critQuery.from(Employee.class);
		Join<Employee, VacationEntry> empVacationjoin = empRoot.join("vacations");
		critQuery.groupBy(empRoot);
		
		critQuery.select(builder.construct(EmployeeVacationDuration.class, empRoot, builder.sum(empVacationjoin.<Long>get("days"))));
		
		TypedQuery<EmployeeVacationDuration> query = manager.createQuery(critQuery);
		
		return query.getResultList();
	}