RELATIONSHIP BINDING ENTITY_1 ENTITY_2 FOREIGN KEY LOCATION
1:1 1-way @OneToOne ENTITY_1
2-way @OneToOne @OneToOne(mappedBy = “”) ENTITY_1
1:N 1-way @OneToMany
@JoinColumn(name = “”)
ENTITY_2
2-way @OneToMany(mappedBy = “”) @ManyToOne ENTITY_2
M:N 2-way @ManyToMany @ManyToMany(mappedBy = “”) NEW ADDITIONAL TABLE
Show Buttons
Hide Buttons