I had a training on
Hibernate last week and one of the advantages of using of HQL presented was that
we can write query scripts that don't depend on the database vendor
SQL.
I see some other
advantage, that, if I am right, is more important because we rarely switch to
another database vendor.
I think that
HQL helps
in staying away from the actual database tables and the way the data
mapping is defiined.
Regards,
Jean
Lazarou