ModeShape/modeshape — pull request #506 by rhauch (2012-09-01 14:23:04+00:00)
Title: MODE-1599 Corrected how result columns are qualified with table name for QOM queries 

The org.apache.jackrabbit.test.api.query.qom.ColumnTest#testExpandColumnsForNodeType() TCK test runs queries in both the Query Object Model (QOM) and JCR-SQL2 languages, and expects that the result set columns for both are named like "selectorName.propertyName", even for queries such as

SELECT s.* FROM [nt:unstructured] AS s

The JCR-SQL2 query result set columns were named correctly, since we set the qualifyExpandedColumnNames' field in the PlanHints for this language. However, the hints for the queries created programmatically using the JCR-QOM QueryObjectModelFactory interface were not being set in the same way. This change corrects that and no longer ignores the ColumnTest#testExpandColumnsForNodeType() TCK test.

*NOTE: this pull request requires the commits from an [earlier pull-request](https://github.com/ModeShape/modeshape/pull/505).*