Skip to content
Snippets Groups Projects
Commit fc8ff8da authored by Rhys Evans's avatar Rhys Evans
Browse files

Final changes and modifications

parent 5e306287
Branches
No related tags found
1 merge request!23Resolve "As a developer I want all landmarks to be stored together"
......@@ -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;
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment