• Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring - JPA/Hibernate : Multiple joins query execution using criteria query

 
Atul More
Greenhorn
Posts: 11
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.


Thanks,
Atul
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!