I can select int and string literals in HQL like so:
select 'a string' as StringLiteral, 1 as IntLiteral from Eg.MyClass
but I haven't found a way to select a boolean literal. I've tried select true ...
, and select new bool true ...
but those cause HQL syntax exceptions.
Is there a way to select a boolean literal in HQL?
I have found a workaround (select case when (1=1) then true...
), but that seems inefficient...