Changes in / [50f2c2a:eef07ff]
- Location:
- Prototype Application/Paw5/src/main
- Files:
-
- 11 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/PersonalProfile.java
r50f2c2a reef07ff 32 32 private GroomingNeed groomingNeed; 33 33 34 public PersonalProfile( Integerid, FriendlyToKids friendlyToKids, FriendlyToPets friendlyToPets, AttentionNeed attentionNeed, PhysicalActivity physicalActivity, GroomingNeed groomingNeed) {34 public PersonalProfile(int 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
r50f2c2a 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
r50f2c2a 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/service/ShelterService.java
r50f2c2a reef07ff 4 4 5 5 import java.util.List; 6 import java.util.Optional;7 6 8 7 public interface ShelterService { 9 Optional<Shelter> findById(Integer id);10 8 List<Shelter> listShelters(); 11 9 } -
Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation/ShelterServiceImplementation.java
r50f2c2a reef07ff 7 7 8 8 import java.util.List; 9 import java.util.Optional;10 9 11 10 @Service 12 11 public class ShelterServiceImplementation implements ShelterService { 13 14 12 private final ShelterRepository shelterRepository; 15 13 … … 18 16 } 19 17 20 @Override21 public Optional<Shelter> findById(Integer id) {22 return this.shelterRepository.findById(id);23 }24 18 25 19 @Override … … 27 21 return shelterRepository.findAll(); 28 22 } 29 30 31 23 }
Note:
See TracChangeset
for help on using the changeset viewer.