I've run into a peculiar problem where a hql query is working as expected on Windows but does not on Linux. Here is the query:
select distinct resource from Resource resource , ...