@Override
	public User getUser(int id) throws SQLException {
		User searchedUser = null;
		Session session=null;
		
		try{
			session=HibernateUtil.getSessionFactory().openSession();
			session.beginTransaction();
			searchedUser = (User)session.get(User.class, id);
			session.getTransaction().commit();
		}catch(Exception e){
			e.printStackTrace();
		}finally{
			if(session!=null && session.isOpen())
				session.close();
		}
		return searchedUser;
	}