Changes in / [f194b4e:eef07ff]


Ignore:
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  
    4343
    4444    @Column(name = "id_adoption")
    45     private Integer adoptionId;
     45    private int adoptionId;
    4646
    4747    @Column(name = "id_shelter")
    48     private Integer shelterId;
     48    private int shelterId;
    4949
    50     public Pet(String imageUrl, AgeGroup ageGroup, Size size, String breed, String name, Species species, Gender gender, boolean canBeFostered, Integer adoptionId, Integer shelterId) {
     50    public Pet(String imageUrl, AgeGroup ageGroup, Size size, String breed, String name, Species species, Gender gender, boolean canBeFostered, int adoptionId, int shelterId) {
    5151        this.imageUrl = imageUrl;
    5252        this.ageGroup = ageGroup;
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Post.java

    rf194b4e reef07ff  
    55
    66import java.time.LocalDate;
     7import java.util.Date;
    78
    89@Data
     
    2324
    2425    @Column(name="id_pet", nullable = false)
    25     private Integer petId;
     26    private int petId;
    2627
    2728    @Column(name="id_surendee")
    28     private Integer surendeeId;
     29    private int surendeeId;
    2930
    3031    @Column(name="id_employee")
    31     private Integer employeeId;
     32    private int employeeId;
    3233
    33     public Post(LocalDate dateCreated, String thumbnailUrl, Integer petId, Integer surendeeId, Integer employeeId) {
     34    public Post(LocalDate dateCreated, String thumbnailUrl, int petId, int surendeeId, int employeeId) {
    3435        this.dateCreated = dateCreated;
    3536        this.thumbnailUrl = thumbnailUrl;
  • Prototype Application/Paw5/src/main/java/finki/paw5/web/controllers/HomeController.java

    rf194b4e reef07ff  
    11package finki.paw5.web.controllers;
    22
    3 import jakarta.servlet.http.HttpServletRequest;
    43import org.springframework.stereotype.Controller;
    54import org.springframework.web.bind.annotation.GetMapping;
     
    1110
    1211    @GetMapping
    13     public String getHomePage(HttpServletRequest request) {
    14         if(request.getSession().getAttribute("user")==null){
    15             return "redirect:/login";
    16         }
     12    public String getHomePage(){
    1713        return "home";
    1814    }
    19 
    2015    @GetMapping("/aboutUs")
    21     public String getSuccessPage() {
     16    public String getSuccessPage(){
    2217        return "/aboutUs";
    2318    }
  • Prototype Application/Paw5/src/main/resources/templates/aboutUs.html

    rf194b4e reef07ff  
    11<!DOCTYPE html>
    2 <html lang="en" xmlns:th="http://thymeleaf.org">
     2<html lang="en">
    33<head>
    44    <meta charset="UTF-8">
  • Prototype Application/Paw5/src/main/resources/templates/home.html

    rf194b4e reef07ff  
    11<!DOCTYPE html>
    2 <html lang="en" xmlns:th="http://thymeleaf.org">
     2<html lang="en">
    33<head>
    44    <meta charset="UTF-8">
     
    3535  </nav>
    3636</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
    4238<div>
    4339  <h1>Welcome to Paw 5</h1>
  • Prototype Application/Paw5/src/main/resources/templates/login.html

    rf194b4e reef07ff  
    11<!DOCTYPE html>
    2 <html lang="en" xmlns:th="http://thymeleaf.org">
     2<html lang="en">
    33<head>
    44  <meta charset="UTF-8">
  • Prototype Application/Paw5/src/main/resources/templates/register.html

    rf194b4e reef07ff  
    11<!DOCTYPE html>
    2 <html lang="en" xmlns:th="http://thymeleaf.org">
     2<html lang="en" xmlns:th="http://www.thymeleaf.org">
    33<head>
    44    <meta charset="UTF-8">
Note: See TracChangeset for help on using the changeset viewer.