Today, we are dealing with a query bug, and by screening the error, we locate it on a statement with an "not equal to" condition, as follows
and ic.alarmClass <> ?
Both <> and != are used for "not equal" conditions, but at the same time, the data with empty alarmClass is filtered. If you want to keep these data, hql is written as follows:
and ( ic.alarmClass <> ? or ic.alarmClass is null )
What better way to write it? please tell me