From: <hib...@li...> - 2006-03-09 21:11:05
|
Author: ste...@jb... Date: 2006-03-09 16:11:01 -0500 (Thu, 09 Mar 2006) New Revision: 9584 Modified: branches/Branch_3_1/Hibernate3/src/org/hibernate/hql/ast/tree/FromElementFactory.java branches/Branch_3_1/Hibernate3/test/org/hibernate/test/hql/HQLTest.java Log: more super-duper-classic-parser-regression-testing-mojo-magic fun Modified: branches/Branch_3_1/Hibernate3/src/org/hibernate/hql/ast/tree/FromElementFactory.java =================================================================== --- branches/Branch_3_1/Hibernate3/src/org/hibernate/hql/ast/tree/FromElementFactory.java 2006-03-09 18:48:31 UTC (rev 9583) +++ branches/Branch_3_1/Hibernate3/src/org/hibernate/hql/ast/tree/FromElementFactory.java 2006-03-09 21:11:01 UTC (rev 9584) @@ -194,6 +194,11 @@ } } + // super-duper-classic-parser-regression-testing-mojo-magic... + if ( explicitSubqueryFromElement && DotNode.useThetaStyleImplicitJoins ) { + implied = true; + } + Type elementType = queryableCollection.getElementType(); if ( elementType.isEntityType() ) { // A collection of entities... elem = createEntityAssociation( role, roleAlias, joinType ); Modified: branches/Branch_3_1/Hibernate3/test/org/hibernate/test/hql/HQLTest.java =================================================================== --- branches/Branch_3_1/Hibernate3/test/org/hibernate/test/hql/HQLTest.java 2006-03-09 18:48:31 UTC (rev 9583) +++ branches/Branch_3_1/Hibernate3/test/org/hibernate/test/hql/HQLTest.java 2006-03-09 21:11:01 UTC (rev 9584) @@ -895,7 +895,9 @@ } public void testManyToManyJoinInSubselect() throws Exception { + DotNode.useThetaStyleImplicitJoins = true; assertTranslation( "select foo from Foo foo where foo in (select elt from Baz baz join baz.fooArray elt)" ); + DotNode.useThetaStyleImplicitJoins = false; } public void testImplicitJoinInSubselect() throws Exception { |