source: Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation/OrganisationServiceImpl.java@ da44aef

main
Last change on this file since da44aef was da44aef, checked in by trajchevaM <118018439+trajchevaM@…>, 17 months ago

register functionality

  1. Changed css of login.html
  2. Changed css and html of register
  3. Foreign keys in Adopter and Employee changed from int to Integer
  4. AuthorisationService updated with methods for employee and adopter registration
  5. RegisterController works only for employee and adopter
  6. Added services for Organisation and Shelter for dropdown list on registration form
  • Property mode set to 100644
File size: 673 bytes
Line 
1package finki.paw5.service.implementation;
2
3import finki.paw5.model.entities.Organisation;
4import finki.paw5.repository.OrganisationRepository;
5import finki.paw5.service.OrganisationService;
6import org.springframework.stereotype.Service;
7
8import java.util.List;
9@Service
10public class OrganisationServiceImpl implements OrganisationService {
11 private final OrganisationRepository organisationRepository;
12
13 public OrganisationServiceImpl(OrganisationRepository organisationRepository) {
14 this.organisationRepository = organisationRepository;
15 }
16
17 @Override
18 public List<Organisation> findAll() {
19 return organisationRepository.findAll();
20 }
21}
Note: See TracBrowser for help on using the repository browser.