Многие к одному то есть
This commit is contained in:
parent
ec70be59ac
commit
438b1f04d2
@ -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() {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user