public boolean addUser(User user){
		boolean res = false;
		try{
			session = HibernateUtil.getSession();
			session.beginTransaction();//ʼ
			session.save(user);
			session.getTransaction().commit();//ύ
			res = true;
		}catch(Exception e){
			session.getTransaction().rollback();//ع
			System.out.println("ûʧ");
			e.printStackTrace();
			res = false;
		}finally{
			HibernateUtil.closeSession();
		}
		return res;
	}