- Timestamp:
- 02/14/23 20:45:37 (17 months ago)
- Branches:
- main
- Children:
- 59a8941
- Parents:
- 3f5e485
- Location:
- Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation/PetServiceImplementation.java
r3f5e485 ra762b3a 5 5 import finki.paw5.service.PetService; 6 6 import org.springframework.stereotype.Service; 7 8 import java.util.List; 9 import java.util.Optional; 7 10 8 11 @Service … … 19 22 this.petRepository.save(pet); 20 23 } 24 25 @Override 26 public List<Pet> findAll() { 27 return this.petRepository.findAll(); 28 } 29 30 @Override 31 public Optional<Pet> findById(Integer petId) { 32 return this.petRepository.findById(petId); 33 } 21 34 } -
Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation/PostServiceImplementation.java
r3f5e485 ra762b3a 5 5 import finki.paw5.service.PostService; 6 6 import org.springframework.stereotype.Service; 7 8 import java.util.List; 9 import java.util.Optional; 7 10 8 11 @Service … … 20 23 } 21 24 25 @Override 26 public List<Post> findAll() { 27 return this.postRepository.findAll(); 28 } 29 30 @Override 31 public Optional<Post> findById(Integer id) { 32 return this.postRepository.findById(id); 33 } 22 34 }
Note:
See TracChangeset
for help on using the changeset viewer.