[jboss-cvs] jbosside/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal ...
Max Rydahl Andersen
mandersen at jboss.com
Thu Jan 18 13:22:25 EST 2007
User: mandersen
Date: 07/01/18 13:22:25
Modified: hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal
HQLDetector.java
Log:
HBX-855 createQuery hql validaiton only works if it is the last call in a statement
Revision Changes Path
1.2 +5 -2 jbosside/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLDetector.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: HQLDetector.java
===================================================================
RCS file: /cvsroot/jboss/jbosside/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLDetector.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- HQLDetector.java 27 Nov 2006 15:31:46 -0000 1.1
+++ HQLDetector.java 18 Jan 2007 18:22:25 -0000 1.2
@@ -89,7 +89,10 @@
}
return false;
} else {
- return false;
+ // have to return true since
+ // List users = newEm.createQuery("select u from User u").getResultList();
+ // will start with .getResultList(); and if false then it will stop processing.
+ return true;
}
}
More information about the jboss-cvs-commits
mailing list