@Override
	public List<Centre_coworking> cercaAvancada(String nom, boolean banys, boolean cafe, boolean internet, boolean salaReunions, String poblacio) {
		Session session = sessionfactory.getCurrentSession();
		Criteria criteria = session.createCriteria(Centre_coworking.class);
		List<Centre_coworking> centrelist;
		if(nom!=null){
			if(!nom.isEmpty()){
				criteria = criteria.add(Restrictions.like("nom", nom+"%"));
			}
		}
		if(cafe)
			criteria = criteria.add(Restrictions.eq("cafeteria", cafe));
		if(internet)
			criteria = criteria.add(Restrictions.eq("internet", internet));
		if(salaReunions)
			criteria = criteria.add(Restrictions.eq("sala_reunions", salaReunions));
		if(banys)
			criteria = criteria.add(Restrictions.eq("banys", banys));
		
		criteria = criteria.add(Restrictions.eq("poblacio", poblacio));
		centrelist= criteria.list();
	
		return centrelist;
	}