I have posted a question few days ago about Querying on collections with the Criteria API and after all the answers I see that the thing that I am trying is not possible wit
I have sent an email to Ayende Rahien about the issue and thank to him for replying.He said that
the answer is that there is no such tool, but conversion is usually pretty easy.