small preparations for more stability

This commit is contained in:
Jörg Henke 2023-03-11 08:04:15 +01:00
parent a0bcaeb59e
commit 00a42a35e3
2 changed files with 2 additions and 1 deletions

View File

@ -324,7 +324,7 @@ public class AdminRepository {
* @return number of affected database rows; should be 1 * @return number of affected database rows; should be 1
*/ */
public Integer upsertLocation(@Valid LocationBean bean) { public Integer upsertLocation(@Valid LocationBean bean) {
// TODO: implement; respect existing camps that fit to the current camp location. // TODO: implement
throw new DataAccessException("not yet implemented"); throw new DataAccessException("not yet implemented");
} }
} }

View File

@ -114,6 +114,7 @@ public class AdminService {
* @param id the ID of the location * @param id the ID of the location
*/ */
public void deleteLocation(Integer id) { public void deleteLocation(Integer id) {
// TODO: if a location is still in use by a camp, forbid deleting it
adminRepository.deleteLocation(id); adminRepository.deleteLocation(id);
} }