Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding fetching query  RSS feed

 
vinoth raj
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using user,role and rolelink table seperatley,
rolelink table links to role and user table, corresponding roleid and userid in the tables.
This is been mapped through hibernate,
I need a query to fetch the user details with corresponding roles.

is there any change we have to do in the hibernate files.
 
Paul Michael
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we have a look at your Hibernate entities?

You might want to look up the MEMBER OF and IN keywords in JPA/Hibernate for this functionality.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!