removed startStation field from cache

This commit is contained in:
Michael 2019-04-05 15:24:02 +02:00
parent 148254e610
commit c0448bda84
2 changed files with 2 additions and 13 deletions

View File

@ -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);

View File

@ -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;
}
}