Ignore:
Timestamp:
02/14/23 20:45:37 (17 months ago)
Author:
SazdovaEkaterina <sazdovaekaterina@…>
Branches:
main
Children:
59a8941
Parents:
3f5e485
Message:

adoption posts list + pet details page

File:
1 edited

Legend:

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

    r3f5e485 ra762b3a  
    55import finki.paw5.service.PetService;
    66import org.springframework.stereotype.Service;
     7
     8import java.util.List;
     9import java.util.Optional;
    710
    811@Service
     
    1922        this.petRepository.save(pet);
    2023    }
     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    }
    2134}
Note: See TracChangeset for help on using the changeset viewer.