The manual says:
Quote:
"you may list the columns explicity, but even then you must let Hibernate inject the SQL column aliases for each property. The placeholder
for a column alias is just the property name qualified by the table alias.
That is, for each column you want to use in the SQL command, you must alias the property so that hibernate put the real column name taken from mapping.
Let's say column AACC_NUMERO is mapped in property 'numero', then you'll have:
Code:
select numero as {declaca0.numero}
from {declaca0}
where numero ='1'