public AlumneVo buscarAlumne(String User) {
			
			try {
					DbConnection conex= new DbConnection();
					
				   PreparedStatement consulta = conex.getConnection().prepareStatement("SELECT * FROM alumnes where nomUser='" + User + "';");
				   
				   ResultSet res = consulta.executeQuery();
				   
				   if (res.next()){
				   
				   		AlumneVo alum=(AlumneVo) Factory.factoryMethod("alumne");
					    
					    alum.setNomUser((res.getString("nomUser")));
					    
					    alum.setNom((res.getString("Nom")));
					    
					    alum.setCognoms((res.getString("Cognoms")));
					    
					    alum.setEdat((Integer.parseInt(res.getString("Edat"))));
					    
					    alum.setPassword((res.getString("password")));
					 
				          res.close();
				          consulta.close();
				          conex.desconectar();
				          
				          return alum;
				   }
				  } catch (Exception e) {
					  
				   System.out.print("La persona no existeix");
				  }
			
			
			return null;
		}