I can't understand the @JoinColumn theory, as you see in the picture:
Seems the @JoinColumn annotation in @ManytoOne and @OneToMany does not follow the same rule.
Does @JoinColumn(name="course_id") should be in the Review class?
How can I know where to include this annotation every time I need it?