@SuppressWarnings("unchecked")
	public List<Order> getAllPendingOrdersOf(Customer customer) {

		return (List<Order>)this.em.createNamedQuery("findAllPendingOrders").setParameter("paramCustomer", customer.getId());
		
	}