Ignore:
Timestamp:
03/04/23 19:55:18 (16 months ago)
Author:
SazdovaEkaterina <sazdovaekaterina@…>
Branches:
main
Children:
33b9f30
Parents:
3c7bf5b (diff), f194b4e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge main into adopting-a-pet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation/PetServiceImplementation.java

    r3c7bf5b reac569a  
    77
    88import java.util.List;
    9 import java.util.Optional;
    109
    1110@Service
     
    2322    }
    2423
    25     @Override
    26     public List<Pet> findAll() {
    27         return this.petRepository.findAll();
    28     }
     24    public List<Pet> listpets() {return this.petRepository.findAll();}
    2925
    3026    @Override
    31     public Optional<Pet> findById(Integer petId) {
    32         return this.petRepository.findById(petId);
     27    public Pet findById(Integer id) {
     28        return this.petRepository.findById(id).get();
    3329    }
    3430}
Note: See TracChangeset for help on using the changeset viewer.