small preparations for more stability
This commit is contained in:
		| @@ -324,7 +324,7 @@ public class AdminRepository { | ||||
| 	 * @return number of affected database rows; should be 1 | ||||
| 	 */ | ||||
| 	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"); | ||||
| 	} | ||||
| } | ||||
|   | ||||
| @@ -114,6 +114,7 @@ public class AdminService { | ||||
| 	 * @param id the ID of the location | ||||
| 	 */ | ||||
| 	public void deleteLocation(Integer id) { | ||||
| 		// TODO: if a location is still in use by a camp, forbid deleting it | ||||
| 	     adminRepository.deleteLocation(id); | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user