source: Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation/AdoptionServiceImplementation.java@ 9a180fd

main
Last change on this file since 9a180fd 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
Line 
1package finki.paw5.service.implementation;
2
3import finki.paw5.model.entities.Adoption;
4import finki.paw5.repository.AdoptionRepository;
5import finki.paw5.service.AdoptionService;
6import org.springframework.stereotype.Service;
7
8@Service
9public 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.