This commit is contained in:
@@ -31,9 +31,9 @@ public class Group extends AbstractEntity {
|
|||||||
|
|
||||||
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
||||||
@OrderBy("name")
|
@OrderBy("name")
|
||||||
private List<Round> rounds;// = new ArrayList<>();
|
private List<Round> rounds;
|
||||||
|
|
||||||
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
||||||
private List<Team> teams;// = new ArrayList<>();
|
private List<Team> teams;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public class Match extends AbstractEntity {
|
|||||||
private Player counter;
|
private Player counter;
|
||||||
|
|
||||||
@OneToMany(cascade = CascadeType.MERGE, fetch = FetchType.LAZY)
|
@OneToMany(cascade = CascadeType.MERGE, fetch = FetchType.LAZY)
|
||||||
private List<Game> games;// = new ArrayList<>();
|
private List<Game> games;
|
||||||
|
|
||||||
private LocalDateTime startTime;
|
private LocalDateTime startTime;
|
||||||
|
|
||||||
|
|||||||
@@ -28,10 +28,11 @@ public class Round extends AbstractEntity {
|
|||||||
private Status status;
|
private Status status;
|
||||||
|
|
||||||
@OneToMany(cascade = CascadeType.MERGE, fetch = FetchType.LAZY)
|
@OneToMany(cascade = CascadeType.MERGE, fetch = FetchType.LAZY)
|
||||||
private List<Match> matches;// = new ArrayList<>();
|
@OrderBy("id")
|
||||||
|
private List<Match> matches;
|
||||||
|
|
||||||
@OneToMany(cascade = CascadeType.MERGE, fetch = FetchType.LAZY)
|
@OneToMany(cascade = CascadeType.MERGE, fetch = FetchType.LAZY)
|
||||||
private List<Team> quit;// = new ArrayList<>();
|
private List<Team> quit;
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
private Team drawnOut;
|
private Team drawnOut;
|
||||||
|
|||||||
Reference in New Issue
Block a user