• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

many-to-many mapping with additional field

 
Aleksander Braula
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two classes that have a many to many relation - "rate" between user and content.
A user can rate many content items and an item can be rated by many users.

I was thinking by representing it in the database by:



My question is: how do I include the rating field from the rating table in the mapping files and access it in the code ?
or if its not possible where should I keep the rating information.
 
James Sutherland
Ranch Hand
Posts: 553
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic