Author: max.andersen(a)jboss.com
Date: 2006-10-31 09:21:49 -0500 (Tue, 31 Oct 2006)
New Revision: 10666
Modified:
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/ant/QueryExporterTask.java
Log:
fix bug in <hql> were nested queries were ignored
Modified:
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/ant/QueryExporterTask.java
===================================================================
---
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/ant/QueryExporterTask.java 2006-10-31
13:24:23 UTC (rev 10665)
+++
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/ant/QueryExporterTask.java 2006-10-31
14:21:49 UTC (rev 10666)
@@ -28,7 +28,7 @@
for (Iterator iter = queries.iterator(); iter.hasNext();) {
HQL hql = (HQL) iter.next();
if(StringHelper.isNotEmpty(hql.query)) {
- queryStrings.add(query);
+ queryStrings.add(hql.query);
}
}
exporter.setQueries(queryStrings);
Show replies by date