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();
|
Cache cache = cacheOptional.get();
|
||||||
bearbeitet.setCache(cache);
|
bearbeitet.setCache(cache);
|
||||||
|
|
||||||
Station startStation = cache.getStartStation();
|
Station startStation = cache.getStationen().get(0);
|
||||||
bearbeitet.setAktuelleStation(startStation);
|
bearbeitet.setAktuelleStation(startStation);
|
||||||
} else {
|
} else {
|
||||||
return ResponseEntity.status(404).body("Couldnt find Cache " + cacheID);
|
return ResponseEntity.status(404).body("Couldnt find Cache " + cacheID);
|
||||||
|
|||||||
@ -23,9 +23,6 @@ public class Cache {
|
|||||||
@ManyToOne
|
@ManyToOne
|
||||||
private Reward reward;
|
private Reward reward;
|
||||||
|
|
||||||
@ManyToOne
|
|
||||||
private Station startStation;
|
|
||||||
|
|
||||||
public Cache() {
|
public Cache() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,7 +65,7 @@ public class Cache {
|
|||||||
public void setStationen(List<Station> stationen) {
|
public void setStationen(List<Station> stationen) {
|
||||||
this.stationen = stationen;
|
this.stationen = stationen;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Reward getReward() {
|
public Reward getReward() {
|
||||||
return reward;
|
return reward;
|
||||||
}
|
}
|
||||||
@ -76,12 +73,4 @@ public class Cache {
|
|||||||
public void setReward(Reward reward) {
|
public void setReward(Reward reward) {
|
||||||
this.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