Многие к одному то есть

This commit is contained in:
Danil_Malin 2023-03-13 18:10:38 +04:00
parent ec70be59ac
commit 438b1f04d2

View File

@ -22,7 +22,7 @@ public class Book {
joinColumns = @JoinColumn(name = "book_id"), joinColumns = @JoinColumn(name = "book_id"),
inverseJoinColumns = @JoinColumn(name = "genre_id")) inverseJoinColumns = @JoinColumn(name = "genre_id"))
private List<Genre> genres; private List<Genre> genres;
@ManyToOne @ManyToOne //to do
private Author author; private Author author;
public Book() { public Book() {
} }