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

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Mon Sep 25 11:14:11 EDT 2006


Author: epbernard
Date: 2006-09-25 11:14:10 -0400 (Mon, 25 Sep 2006)
New Revision: 10528

Modified:
   branches/Branch_3_2/Hibernate3/src/org/hibernate/hql/ast/tree/SelectClause.java
Log:
HHH-2103 rollback mandatory select in JPA

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-09-25 15:13:41 UTC (rev 10527)
+++ branches/Branch_3_2/Hibernate3/src/org/hibernate/hql/ast/tree/SelectClause.java	2006-09-25 15:14:10 UTC (rev 10528)
@@ -256,10 +256,12 @@
 		if ( prepared ) {
 			throw new IllegalStateException( "SelectClause was already prepared!" );
 		}
-		if ( getSessionFactoryHelper().isStrictJPAQLComplianceEnabled()  && !getWalker().isSubQuery() ) {
-			// NOTE : the isSubQuery() bit is a temporary hack...
-			throw new QuerySyntaxException( "JPA-QL compliance requires select clause" );
-		}
+
+		//Used to be tested by the TCK but the test is no longer here
+//		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();
 
 		ASTAppender appender = new ASTAppender( getASTFactory(), this );	// Get ready to start adding nodes.




More information about the hibernate-commits mailing list