I have a question:
I want to execute a query in which I need to get populate the data from muliple level entity.
E.g. - User -> Role -> Permission
If Admin want to search a user based on permission or based on role, he can able tot do that.
I want to know, how can I write a criteria query in this kind of situation.