Changes in / [f194b4e:eef07ff]
- Location:
- Prototype Application/Paw5/src/main
- Files:
-
- 7 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Pet.java
rf194b4e reef07ff 43 43 44 44 @Column(name = "id_adoption") 45 private IntegeradoptionId;45 private int adoptionId; 46 46 47 47 @Column(name = "id_shelter") 48 private IntegershelterId;48 private int shelterId; 49 49 50 public Pet(String imageUrl, AgeGroup ageGroup, Size size, String breed, String name, Species species, Gender gender, boolean canBeFostered, Integer adoptionId, IntegershelterId) {50 public Pet(String imageUrl, AgeGroup ageGroup, Size size, String breed, String name, Species species, Gender gender, boolean canBeFostered, int adoptionId, int shelterId) { 51 51 this.imageUrl = imageUrl; 52 52 this.ageGroup = ageGroup; -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Post.java
rf194b4e reef07ff 5 5 6 6 import java.time.LocalDate; 7 import java.util.Date; 7 8 8 9 @Data … … 23 24 24 25 @Column(name="id_pet", nullable = false) 25 private IntegerpetId;26 private int petId; 26 27 27 28 @Column(name="id_surendee") 28 private IntegersurendeeId;29 private int surendeeId; 29 30 30 31 @Column(name="id_employee") 31 private IntegeremployeeId;32 private int employeeId; 32 33 33 public Post(LocalDate dateCreated, String thumbnailUrl, Integer petId, Integer surendeeId, IntegeremployeeId) {34 public Post(LocalDate dateCreated, String thumbnailUrl, int petId, int surendeeId, int employeeId) { 34 35 this.dateCreated = dateCreated; 35 36 this.thumbnailUrl = thumbnailUrl; -
Prototype Application/Paw5/src/main/java/finki/paw5/web/controllers/HomeController.java
rf194b4e reef07ff 1 1 package finki.paw5.web.controllers; 2 2 3 import jakarta.servlet.http.HttpServletRequest;4 3 import org.springframework.stereotype.Controller; 5 4 import org.springframework.web.bind.annotation.GetMapping; … … 11 10 12 11 @GetMapping 13 public String getHomePage(HttpServletRequest request) { 14 if(request.getSession().getAttribute("user")==null){ 15 return "redirect:/login"; 16 } 12 public String getHomePage(){ 17 13 return "home"; 18 14 } 19 20 15 @GetMapping("/aboutUs") 21 public String getSuccessPage() 16 public String getSuccessPage(){ 22 17 return "/aboutUs"; 23 18 } -
Prototype Application/Paw5/src/main/resources/templates/aboutUs.html
rf194b4e reef07ff 1 1 <!DOCTYPE html> 2 <html lang="en" xmlns:th="http://thymeleaf.org">2 <html lang="en"> 3 3 <head> 4 4 <meta charset="UTF-8"> -
Prototype Application/Paw5/src/main/resources/templates/home.html
rf194b4e reef07ff 1 1 <!DOCTYPE html> 2 <html lang="en" xmlns:th="http://thymeleaf.org">2 <html lang="en"> 3 3 <head> 4 4 <meta charset="UTF-8"> … … 35 35 </nav> 36 36 </header> 37 <div> 38 <form method="get" th:action="@{'/create-post'}"> 39 <button id="submit" type="submit">Create an Adoption Post</button> 40 </form> 41 </div> 37 42 38 <div> 43 39 <h1>Welcome to Paw 5</h1> -
Prototype Application/Paw5/src/main/resources/templates/login.html
rf194b4e reef07ff 1 1 <!DOCTYPE html> 2 <html lang="en" xmlns:th="http://thymeleaf.org">2 <html lang="en"> 3 3 <head> 4 4 <meta charset="UTF-8"> -
Prototype Application/Paw5/src/main/resources/templates/register.html
rf194b4e reef07ff 1 1 <!DOCTYPE html> 2 <html lang="en" xmlns:th="http:// thymeleaf.org">2 <html lang="en" xmlns:th="http://www.thymeleaf.org"> 3 3 <head> 4 4 <meta charset="UTF-8">
Note:
See TracChangeset
for help on using the changeset viewer.