Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Many to Many relationship Query in hibernate

Khushwinder Chahal
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Good People,

I am stuck in many-to-many relationship problem in Hibernate. I have the following scenario:

As you can see third table implementing M:M relationship.

Now i want to display in the UI like :

List of products along with total number of customers in each product.

I have made database query for this problem like :

after that i am unable to understand how should i map this query to any object class ?

Please suggest me if any one has any idea?

Thanks and Regards,
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic