SQL 语句:
select * FROM Message
WHERE senderId = 126 and receiverId = 125
and dateReceived is null
HQL 语句:
FROM Message
WHERE senderId = :senderId and receiverId = :receiverId
and dateReceived is null
我有错误。那么如何编写 HQL 以获得与上述 sql 语句相同的结果呢?