The TableA object will return all the properties it has mapped to database columns. If you want to return only specific columns/properties, you have two choices.
Code:
select a.ID, a.NAME from TableA as a
or
Code:
select new MiniTableA( a.ID, a.NAME ) from TableA as a
This assumes that the MiniTableA object has the appropriate constructor signature, and has been included in the mappings.
http://www.hibernate.org/hib_docs/nhibernate/html/queryhql.html
This is a common question. I tried searching the forums to give you a link to previous questions, but oddly enough my searches returned no results.