[#6543] Improved example entitie
This commit is contained in:
parent
7b77a24331
commit
b7357ee60a
@ -64,6 +64,8 @@ public class Actor {
|
||||
@ManyToMany(fetch = LAZY, mappedBy = "actors", cascade = CascadeType.ALL)
|
||||
public Set<Film> films = new HashSet<>();
|
||||
|
||||
public Actor() {}
|
||||
|
||||
public Actor(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
|
||||
@ -88,6 +88,8 @@ public class Film {
|
||||
@ManyToMany(fetch = LAZY, cascade = CascadeType.ALL)
|
||||
public Set<Actor> actors = new HashSet<>();
|
||||
|
||||
public Film() {}
|
||||
|
||||
public Film(Title title, Language language, int length, Year releaseYear) {
|
||||
this.title = title;
|
||||
this.language = language;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user