Changes in / [eef07ff:50f2c2a]
- Location:
- Prototype Application/Paw5/src/main
- Files:
-
- 11 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/PersonalProfile.java
reef07ff r50f2c2a 32 32 private GroomingNeed groomingNeed; 33 33 34 public PersonalProfile( intid, 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) { 35 35 this.id = id; 36 36 this.friendlyToKids = friendlyToKids; -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Pet.java
reef07ff r50f2c2a 43 43 44 44 @Column(name = "id_adoption") 45 private intadoptionId;45 private Integer adoptionId; 46 46 47 47 @Column(name = "id_shelter") 48 private intshelterId;48 private Integer shelterId; 49 49 50 public Pet(String imageUrl, AgeGroup ageGroup, Size size, String breed, String name, Species species, Gender gender, boolean canBeFostered, int adoptionId, intshelterId) {50 public Pet(String imageUrl, AgeGroup ageGroup, Size size, String breed, String name, Species species, Gender gender, boolean canBeFostered, Integer adoptionId, Integer shelterId) { 51 51 this.imageUrl = imageUrl; 52 52 this.ageGroup = ageGroup; -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Post.java
reef07ff r50f2c2a 5 5 6 6 import java.time.LocalDate; 7 import java.util.Date;8 7 9 8 @Data … … 24 23 25 24 @Column(name="id_pet", nullable = false) 26 private intpetId;25 private Integer petId; 27 26 28 27 @Column(name="id_surendee") 29 private intsurendeeId;28 private Integer surendeeId; 30 29 31 30 @Column(name="id_employee") 32 private intemployeeId;31 private Integer employeeId; 33 32 34 public Post(LocalDate dateCreated, String thumbnailUrl, int petId, int surendeeId, intemployeeId) {33 public Post(LocalDate dateCreated, String thumbnailUrl, Integer petId, Integer surendeeId, Integer employeeId) { 35 34 this.dateCreated = dateCreated; 36 35 this.thumbnailUrl = thumbnailUrl; -
Prototype Application/Paw5/src/main/java/finki/paw5/service/ShelterService.java
reef07ff r50f2c2a 4 4 5 5 import java.util.List; 6 import java.util.Optional; 6 7 7 8 public interface ShelterService { 9 Optional<Shelter> findById(Integer id); 8 10 List<Shelter> listShelters(); 9 11 } -
Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation/ShelterServiceImplementation.java
reef07ff r50f2c2a 7 7 8 8 import java.util.List; 9 import java.util.Optional; 9 10 10 11 @Service 11 12 public class ShelterServiceImplementation implements ShelterService { 13 12 14 private final ShelterRepository shelterRepository; 13 15 … … 16 18 } 17 19 20 @Override 21 public Optional<Shelter> findById(Integer id) { 22 return this.shelterRepository.findById(id); 23 } 18 24 19 25 @Override … … 21 27 return shelterRepository.findAll(); 22 28 } 29 30 23 31 }
Note:
See TracChangeset
for help on using the changeset viewer.