I have a HQL
query in join between 2 table, with field1
that may be null or with value.
If it is null in first table I have to check if in the second table 'is null' but if it is with value I have to check if table1.field1=table1.field1
How can I do this with 'Case When' in HQL?