main
Last change
on this file since da44aef was da44aef, checked in by trajchevaM <118018439+trajchevaM@…>, 17 months ago |
register functionality
- Changed css of login.html
- Changed css and html of register
- Foreign keys in Adopter and Employee changed from int to Integer
- AuthorisationService updated with methods for employee and adopter registration
- RegisterController works only for employee and adopter
- Added services for Organisation and Shelter for dropdown list on registration form
|
-
Property mode
set to
100644
|
File size:
673 bytes
|
Rev | Line | |
---|
[da44aef] | 1 | package finki.paw5.service.implementation;
|
---|
| 2 |
|
---|
| 3 | import finki.paw5.model.entities.Organisation;
|
---|
| 4 | import finki.paw5.repository.OrganisationRepository;
|
---|
| 5 | import finki.paw5.service.OrganisationService;
|
---|
| 6 | import org.springframework.stereotype.Service;
|
---|
| 7 |
|
---|
| 8 | import java.util.List;
|
---|
| 9 | @Service
|
---|
| 10 | public 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.