Greetings,

Could somebody help to translate similar native query to Criteria queries code?
Java Code:
select tmp from
(select * from db_emails where subject="\spam"\) tmp
where tmp.digest=md5(concat(\"digest\",slt))
Thanks in advance,