I have a problem with Hibernate generating SQL that doesn't work on SQLServer (works fine on PostgreSQL). I tried to install hibernation dialogs for SQLServer, but the same SQL is still generated and still does not work. The HQL query is as follows:
select count(t) from ValidationLog t
The generated SQL looks like this:
select count((vl.dataKey, vl.dataType)) from ValidationLog vl;
So my question is, is there around? I'd love to have the same code for both databases.
source
share