public static employeeTypes intToEmployeeType(int type) {
        for (employeeTypes tmpType : employeeTypes.values()) {
            if (tmpType.ordinal() == type) {
                return tmpType;
            }
        }
        return employeeTypes.CLERK;
    }