@Override
	public SQLResult executeHqlQuery(String query, boolean deref) {
		Session session = null;
		Transaction trx = null;
		SQLResult result = new SQLResult();

		try {

			session = sessionFactory.openSession();
			trx = session.beginTransaction();

			Query hqlQuery = session.createQuery(query);
			/*hqlQuery.setResultTransformer(new AliasToEntityMapResultTransformer());
			List<Map <String, Object>> aliasToValueMap = hqlQuery.list();

			Iterator it = aliasToValueMap.iterator();*/
			Iterator it = hqlQuery.list().iterator();
			while(it.hasNext()) {
				System.out.println(it.next());
			}
			
		} catch(HibernateException e) {
			if(trx != null) {
				try {trx.rollback(); } catch(HibernateException he) {}
			}
		} finally {
			try { if( session != null ) session.close(); } catch( Exception exC1 ) {}
		}
		return result;
	}