@Override
	public ArrayList<Map<String,String>> getItemsOfUser(String username) {
		ArrayList<Map<String,String>> itemsList = new ArrayList<Map<String,String>>();
		
		TypedQuery<Item> itemsByUserQuery = emgr.createNamedQuery(
				"Item.findAllByUser", Item.class);
		itemsByUserQuery.setParameter("userName", username);
		List<Item> obtainedItems = (List<Item>) itemsByUserQuery
				.getResultList();
		for (int i = 0; i < obtainedItems.size(); i++) {
			Map<String, String> itemMap = new HashMap<String,String>();
			itemMap.put("itemName", obtainedItems.get(i).getItemName());
			itemMap.put("itemId", Integer.toString(obtainedItems.get(i).getItemId()));
			itemMap.put("itemDescription", obtainedItems.get(i).getItemDescription());
			itemMap.put("category", obtainedItems.get(i).getCategoryName());
			itemMap.put("itemModel", obtainedItems.get(i).getItemModel());
			itemsList.add(itemMap);
		}
		
		
		return itemsList;
	}