Add getPathNames() to Query.

Description

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.

e.g.
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).

Comments:

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
tabs"

http://sourceforge.net/tracker/index.php?func=detail&aid=724583&group_id=40712&atid=428710

Environment

None

Assignee

Unassigned

Reporter

Max Rydahl Andersen

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Priority

Major
Configure