0

I can't understand the @JoinColumn theory, as you see in the picture:

Screenshot with my problem

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?

doctore
  • 3,545
  • 1
  • 26
  • 41

0 Answers0