source: Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation/PersonalProfileServiceImplementation.java@ a762b3a

main
Last change on this file since a762b3a was a762b3a, checked in by SazdovaEkaterina <sazdovaekaterina@…>, 17 months ago

adoption posts list + pet details page

  • Property mode set to 100644
File size: 770 bytes
Line 
1package finki.paw5.service.implementation;
2
3import finki.paw5.model.entities.PersonalProfile;
4import finki.paw5.repository.PersonalProfileRepository;
5import finki.paw5.service.PersonalProfileService;
6import org.springframework.stereotype.Service;
7
8import java.util.Optional;
9
10@Service
11public class PersonalProfileServiceImplementation implements PersonalProfileService {
12
13 private final PersonalProfileRepository personalProfileRepository;
14
15 public PersonalProfileServiceImplementation(PersonalProfileRepository personalProfileRepository) {
16 this.personalProfileRepository = personalProfileRepository;
17 }
18
19 @Override
20 public Optional<PersonalProfile> findById(Integer petId) {
21 return this.personalProfileRepository.findById(petId);
22 }
23}
Note: See TracBrowser for help on using the repository browser.