removed startStation field from cache
This commit is contained in:
parent
148254e610
commit
c0448bda84
@ -97,7 +97,7 @@ public class Controller {
|
||||
Cache cache = cacheOptional.get();
|
||||
bearbeitet.setCache(cache);
|
||||
|
||||
Station startStation = cache.getStartStation();
|
||||
Station startStation = cache.getStationen().get(0);
|
||||
bearbeitet.setAktuelleStation(startStation);
|
||||
} else {
|
||||
return ResponseEntity.status(404).body("Couldnt find Cache " + cacheID);
|
||||
|
||||
@ -23,9 +23,6 @@ public class Cache {
|
||||
@ManyToOne
|
||||
private Reward reward;
|
||||
|
||||
@ManyToOne
|
||||
private Station startStation;
|
||||
|
||||
public Cache() {
|
||||
}
|
||||
|
||||
@ -68,7 +65,7 @@ public class Cache {
|
||||
public void setStationen(List<Station> stationen) {
|
||||
this.stationen = stationen;
|
||||
}
|
||||
|
||||
|
||||
public Reward getReward() {
|
||||
return reward;
|
||||
}
|
||||
@ -76,12 +73,4 @@ public class Cache {
|
||||
public void setReward(Reward reward) {
|
||||
this.reward = reward;
|
||||
}
|
||||
|
||||
public Station getStartStation() {
|
||||
return startStation;
|
||||
}
|
||||
|
||||
public void setStartStation(Station startStation) {
|
||||
this.startStation = startStation;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user