Changes in Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation/PetServiceImplementation.java [a762b3a:4103eaa]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation/PetServiceImplementation.java
ra762b3a r4103eaa 7 7 8 8 import java.util.List; 9 import java.util.Optional;10 9 11 10 @Service … … 24 23 25 24 @Override 26 public List<Pet> findAll() { 27 return this.petRepository.findAll(); 28 } 25 public List<Pet> listpets() {return this.petRepository.findAll();} 29 26 30 27 @Override 31 public Optional<Pet> findById(Integer petId) {32 return this.petRepository.findById( petId);28 public Pet findById(Integer id) { 29 return this.petRepository.findById(id).get(); 33 30 } 34 31 }
Note:
See TracChangeset
for help on using the changeset viewer.