fixed a bug in CacheConstrutctionUtil
This commit is contained in:
parent
e1a10ed23d
commit
7d17277c46
@ -17,15 +17,27 @@ import java.util.Random;
|
||||
|
||||
public class CacheConstructionUtil {
|
||||
|
||||
@Autowired
|
||||
static StationRepository stationRepository;
|
||||
|
||||
@Autowired
|
||||
static CacheRepository cacheRepository;
|
||||
|
||||
@Autowired
|
||||
static BearbeitetRepository bearbeitetRepository;
|
||||
|
||||
@Autowired
|
||||
public void setStationRepository(StationRepository stationRepository) {
|
||||
CacheConstructionUtil.stationRepository = stationRepository;
|
||||
}
|
||||
|
||||
@Autowired
|
||||
public void setCacheRepository(CacheRepository cacheRepository) {
|
||||
CacheConstructionUtil.cacheRepository = cacheRepository;
|
||||
}
|
||||
|
||||
@Autowired
|
||||
public void setBearbeitetRepository(BearbeitetRepository bearbeitetRepository) {
|
||||
CacheConstructionUtil.bearbeitetRepository = bearbeitetRepository;
|
||||
}
|
||||
|
||||
public static ResponseEntity createCacheUtil(Cache cache) {
|
||||
|
||||
// Stationen werden in die Datenbank eingetragen
|
||||
|
||||
Loading…
Reference in New Issue
Block a user