Author: epbernard
Date: 2006-09-25 11:13:41 -0400 (Mon, 25 Sep 2006)
New Revision: 10527
Modified:
trunk/Hibernate3/src/org/hibernate/hql/ast/tree/SelectClause.java
Log:
HHH-2103 rollback mandatory select in JPA
Modified: trunk/Hibernate3/src/org/hibernate/hql/ast/tree/SelectClause.java
===================================================================
--- trunk/Hibernate3/src/org/hibernate/hql/ast/tree/SelectClause.java 2006-09-22 19:20:51
UTC (rev 10526)
+++ trunk/Hibernate3/src/org/hibernate/hql/ast/tree/SelectClause.java 2006-09-25 15:13:41
UTC (rev 10527)
@@ -256,10 +256,11 @@
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.