ЛР3 корректировка связи
This commit is contained in:
parent
3df09259bd
commit
3ef4a530ee
BIN
data.mv.db
BIN
data.mv.db
Binary file not shown.
@ -16,8 +16,6 @@ public class Film {
|
|||||||
inverseJoinColumns = @JoinColumn(name="genre_id")
|
inverseJoinColumns = @JoinColumn(name="genre_id")
|
||||||
)
|
)
|
||||||
private List<Genre> genres;
|
private List<Genre> genres;
|
||||||
@ManyToMany(fetch = FetchType.EAGER, mappedBy = "films")
|
|
||||||
private List<Collection> collections;
|
|
||||||
|
|
||||||
public Film() {
|
public Film() {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user