I searched a lot around but cannot find the answer:
I have the following SQL query:
select distinct l.id_book from wa2011.tb_lending as l where l.id_user = 1
It's a very simple query but I cannot manage to write it. How can I write this in HQL?
Thanks a lot! Cheers.