main
Last change
on this file since cadbec3 was a762b3a, checked in by SazdovaEkaterina <sazdovaekaterina@…>, 19 months ago |
adoption posts list + pet details page
|
-
Property mode
set to
100644
|
File size:
770 bytes
|
Line | |
---|
1 | package finki.paw5.service.implementation;
|
---|
2 |
|
---|
3 | import finki.paw5.model.entities.PersonalProfile;
|
---|
4 | import finki.paw5.repository.PersonalProfileRepository;
|
---|
5 | import finki.paw5.service.PersonalProfileService;
|
---|
6 | import org.springframework.stereotype.Service;
|
---|
7 |
|
---|
8 | import java.util.Optional;
|
---|
9 |
|
---|
10 | @Service
|
---|
11 | public 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.