Domain model association

0
Hi All, 1 user can write review on multiple movies.  1 movie can contain multiple reviews But 1 specific review should be associated with only 1 movie for a specific user. How to achieve this in Domain model ?
asked
2 answers
1

1 to many association with Movie and Review, 1 to many association with User and Review? You can store movie id and user id in Review to only allow 1 person to comment on 1 movie.

answered
-1

Hi,

Use 

 

User to Review 1 – *

Review to Movie * – 1

 

when creating a new movie review, assign movie to that review.

answered