Author: steve.ebersole(a)jboss.com
Date: 2009-04-23 12:52:44 -0400 (Thu, 23 Apr 2009)
New Revision: 16430
Modified:
core/branches/antlr3/src/main/java/org/hibernate/sql/ast/phase/hql/resolve/path/impl/AbstractPathResolutionStrategy.java
Log:
corrected out-of-date assumption about return from createJoin() in
createIndexAccessJoin()
Modified:
core/branches/antlr3/src/main/java/org/hibernate/sql/ast/phase/hql/resolve/path/impl/AbstractPathResolutionStrategy.java
===================================================================
---
core/branches/antlr3/src/main/java/org/hibernate/sql/ast/phase/hql/resolve/path/impl/AbstractPathResolutionStrategy.java 2009-04-23
16:31:31 UTC (rev 16429)
+++
core/branches/antlr3/src/main/java/org/hibernate/sql/ast/phase/hql/resolve/path/impl/AbstractPathResolutionStrategy.java 2009-04-23
16:52:44 UTC (rev 16430)
@@ -428,18 +428,18 @@
validateIndexedCollectionReference( lhs, collectionPropertyName );
QueryableCollection collectionPersister = resolveCollectionPersister( lhs,
collectionPropertyName );
- HibernateTree join = createJoin( lhs, collectionPersister, null, selector );
+ Table joinedTable = createJoin( lhs, collectionPersister, null, selector );
if ( log.isTraceEnabled() ) {
log.trace(
resolutionContext().getTreePrinter().renderAsString(
- join,
+ joinedTable.getParent(),
"implicit join : " + lhs.getSourceAlias() + "." +
collectionPropertyName + "[]"
)
);
}
- return ( Table ) join.getChild( 1 );
+ return joinedTable;
}
/**
Show replies by date