public List<User> getAllUsers() {
		List<User> users = null;
		try {
			beginTransaction();
			users = session.createCriteria(User.class).list();
			session.getTransaction().commit();
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			closeSession();
		}
		return users;
	}