diff --git a/src/main/java/Team5/SmartTowns/Landmarks/LandmarksController.java b/src/main/java/Team5/SmartTowns/Landmarks/LandmarksController.java index 36cf4c6c04fe929173eee83985c9ee9efdf33fb8..a9f13567ccba98c4ebdf2a6f64d98a47df286c2f 100644 --- a/src/main/java/Team5/SmartTowns/Landmarks/LandmarksController.java +++ b/src/main/java/Team5/SmartTowns/Landmarks/LandmarksController.java @@ -43,7 +43,7 @@ public class LandmarksController { location loc= new location(landmarks.getLandmarkID(),landmarks.getLandmarkName(), landmarks.getLandmarkEmail(), landmarks.getLandmarkDescription(), landmarks.getLandmarkLocation(), landmarks.getTrailID()); System.out.println(loc); - locationRepository.addLocation(loc); + locationRepository.addLocation(loc); // adds valid landmark to locations table ModelAndView modelAndView = new ModelAndView("redirect:/home"); return modelAndView; diff --git a/src/main/resources/data.sql b/src/main/resources/data.sql index 3599125bda3f8e258e1aa80b1a0d6f5bcd59abec..099498b3aaa853df8a979b286e2d5768168fad7a 100644 --- a/src/main/resources/data.sql +++ b/src/main/resources/data.sql @@ -25,17 +25,3 @@ insert into locations (locationID, locationName , locationEmail,locationDescript insert into locations (locationID, locationName , locationEmail,locationDescription,locationPlace, locationTrailID) value (14, 'The Medieval Courthouse','','location description here','Caerphilly',0103); insert into locations (locationID, locationName , locationEmail,locationDescription,locationPlace, locationTrailID) value (15 ,'Caerphilly Castle','','location description here','Caerphilly',0103); insert into locations (locationID, locationName , locationEmail,locationDescription,locationPlace, locationTrailID) value (16, 'Ty Vaughan House','','location description here','Caerphilly',0103); -# -# locationID bigint auto_increment primary key, -# locationName varchar(128), -# locationEmail varchar(128), -# locationDescription varchar(255), -# locationTrailID varchar(128) -# -# -# <option value=0 disabled selected>Select Trail</option> -# <option value=0101>(Caerphilly) Castle Trail</option> -# <option value=0102>(Caerphilly) Pub Trail</option> -# <option value=0103>(Caerphilly) Heritage Trail</option> -# <option value=0201>(Risca) Heritage and Culture Trail</option> -# <option value=0301>(Penarth) Esplanade Trail</option> \ No newline at end of file