Desired SQL statement to convert
select * from tableA where columnA is not null
order by cast(columnA as int), columnB
union all
select * from app_data_program where columnA is null order by columnB
My HQL attempt:
From TableA a where a.columnA is not null
order by cast(a.columnA as int), a.columnB
union all TableA b where b.columnA is not null order by b.columnB
When I converted the HQL to SQL to test as a result, i get the following:
SQL Error: Missing IN or OUT parameter at index:: 1