Add getPathNames() to Query.
This patch add getPathNames() to the query interface.
This makes it possible to get the names of the "columns"
returned by HQL.
select c.id, c.name from Category as c
would make getPathNames return "c.id", "c.name"
I've tested it on mysql and all the junit tests works.
(Except MultiTableTest, but that test always fails on
Mysql - so this patch is not to blame).
The name: getPathNames() is my best suggestion - be
free to change it. getColumnNames() was also on my
mind, but as Gavin suggested earlier this is not the "right"
name for it. But is PathNames() ?
When/If we get full alias support (eg. select c.id as myid,
c.name as myname from Category as c) then I expect
the getPathNames() to return "myid, "myname"
I also really wanted to have:
from Category as c, Category as c2 make
getPathNames() return "c", "c2" as that the most correct
name - but I could not find a way to "guess" that info.
Thus if no select clause is given the pathnames is just
given the column number. e.g. "0", "1", etc.
But please be free to say where we can find the info on
what is going to be returned.
p.s. I hope eclipse got my message when I said "Use