main
Last change
on this file since e76c5a6 was 9a180fd, checked in by SazdovaEkaterina <sazdovaekaterina@…>, 17 months ago |
adopt a pet button + save adoption to db
|
-
Property mode
set to
100644
|
File size:
622 bytes
|
Rev | Line | |
---|
[9a180fd] | 1 | package finki.paw5.service.implementation;
|
---|
| 2 |
|
---|
| 3 | import finki.paw5.model.entities.Adoption;
|
---|
| 4 | import finki.paw5.repository.AdoptionRepository;
|
---|
| 5 | import finki.paw5.service.AdoptionService;
|
---|
| 6 | import org.springframework.stereotype.Service;
|
---|
| 7 |
|
---|
| 8 | @Service
|
---|
| 9 | public class AdoptionServiceImplementation implements AdoptionService {
|
---|
| 10 |
|
---|
| 11 | private final AdoptionRepository adoptionRepository;
|
---|
| 12 |
|
---|
| 13 | public AdoptionServiceImplementation(AdoptionRepository adoptionRepository) {
|
---|
| 14 | this.adoptionRepository = adoptionRepository;
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | @Override
|
---|
| 18 | public void save(Adoption adoption) {
|
---|
| 19 | this.adoptionRepository.save(adoption);
|
---|
| 20 | }
|
---|
| 21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.