feat: update entity Passage, Visit
This commit is contained in:
parent
e436c54714
commit
5f5a5e2c0c
@ -27,6 +27,6 @@ public class Passage {
|
||||
@Size(max = 100, message = "Максимальная длина названия 100 символов!")
|
||||
private String passage;
|
||||
|
||||
@OneToMany(mappedBy = "typePassage")
|
||||
@OneToMany(mappedBy = "passage")
|
||||
private List<Visit> visits;
|
||||
}
|
||||
|
@ -40,7 +40,8 @@ public class Visit {
|
||||
@JoinColumn(name = "end_terminal_id", referencedColumnName = "code")
|
||||
private Terminal endTerminal;
|
||||
|
||||
@OneToMany(mappedBy = "passage")
|
||||
private long typePassage;
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "type_passage", referencedColumnName = "id", nullable = false)
|
||||
private Passage passage;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user