Changes in / [da44aef:59a8941]


Ignore:
Location:
Prototype Application/Paw5/src/main
Files:
12 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/PersonalProfile.java

    rda44aef r59a8941  
    3232    private GroomingNeed groomingNeed;
    3333
    34     public PersonalProfile(int id, FriendlyToKids friendlyToKids, FriendlyToPets friendlyToPets, AttentionNeed attentionNeed, PhysicalActivity physicalActivity, GroomingNeed groomingNeed) {
     34    public PersonalProfile(Integer id, FriendlyToKids friendlyToKids, FriendlyToPets friendlyToPets, AttentionNeed attentionNeed, PhysicalActivity physicalActivity, GroomingNeed groomingNeed) {
    3535        this.id = id;
    3636        this.friendlyToKids = friendlyToKids;
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Pet.java

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

    rda44aef r59a8941  
    55
    66import java.time.LocalDate;
    7 import java.util.Date;
    87
    98@Data
     
    2423
    2524    @Column(name="id_pet", nullable = false)
    26     private int petId;
     25    private Integer petId;
    2726
    2827    @Column(name="id_surendee")
    29     private int surendeeId;
     28    private Integer surendeeId;
    3029
    3130    @Column(name="id_employee")
    32     private int employeeId;
     31    private Integer employeeId;
    3332
    34     public Post(LocalDate dateCreated, String thumbnailUrl, int petId, int surendeeId, int employeeId) {
     33    public Post(LocalDate dateCreated, String thumbnailUrl, Integer petId, Integer surendeeId, Integer employeeId) {
    3534        this.dateCreated = dateCreated;
    3635        this.thumbnailUrl = thumbnailUrl;
  • Prototype Application/Paw5/src/main/java/finki/paw5/service/ShelterService.java

    rda44aef r59a8941  
    44
    55import java.util.List;
     6import java.util.Optional;
    67
    78public interface ShelterService {
     9    Optional<Shelter> findById(Integer id);
    810    List<Shelter> listShelters();
    911}
Note: See TracChangeset for help on using the changeset viewer.