mirror of
https://github.com/PaulReichmuth/timekeep-backend.git
synced 2025-12-22 14:41:57 +00:00
fix entity relation model on Team class side
This commit is contained in:
@@ -21,8 +21,8 @@ public class Team {
|
||||
|
||||
private boolean firstSemesterTeam;
|
||||
|
||||
@OneToMany(cascade = CascadeType.ALL, mappedBy = "racerID")
|
||||
private Map<String, Racer> members;
|
||||
@OneToMany(mappedBy = "memberTeam", cascade = CascadeType.ALL)
|
||||
private List<Racer> members;
|
||||
|
||||
@OneToMany(cascade = CascadeType.ALL)
|
||||
private Map<String, Station> passedStations;
|
||||
|
||||
Reference in New Issue
Block a user