[hibernate-commits] Hibernate SVN: r10296 - branches/Branch_3_2/Hibernate3/src/org/hibernate/hql/ast/tree

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Fri Aug 18 18:02:53 EDT 2006


Author: steve.ebersole at jboss.com
Date: 2006-08-18 18:02:38 -0400 (Fri, 18 Aug 2006)
New Revision: 10296

Modified:
   branches/Branch_3_2/Hibernate3/src/org/hibernate/hql/ast/tree/SelectClause.java
Log:
HHH-1944 : generated subqueries and jpaql compliance (derived select clause) check

Modified: branches/Branch_3_2/Hibernate3/src/org/hibernate/hql/ast/tree/SelectClause.java
===================================================================
--- branches/Branch_3_2/Hibernate3/src/org/hibernate/hql/ast/tree/SelectClause.java	2006-08-18 22:01:43 UTC (rev 10295)
+++ branches/Branch_3_2/Hibernate3/src/org/hibernate/hql/ast/tree/SelectClause.java	2006-08-18 22:02:38 UTC (rev 10296)
@@ -256,7 +256,8 @@
 		if ( prepared ) {
 			throw new IllegalStateException( "SelectClause was already prepared!" );
 		}
-		if ( getSessionFactoryHelper().isStrictJPAQLComplianceEnabled() ) {
+		if ( getSessionFactoryHelper().isStrictJPAQLComplianceEnabled()  && !getWalker().isSubQuery() ) {
+			// NOTE : the isSubQuery() bit is a temporary hack...
 			throw new QuerySyntaxException( "JPA-QL compliance requires select clause" );
 		}
 		List fromElements = fromClause.getProjectionList();




More information about the hibernate-commits mailing list