Last change
on this file was ed20c2c, checked in by HumaSejdini <humasejdini12@…>, 2 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
879 bytes
|
Line | |
---|
1 | package com.example.baza.service.impl;
|
---|
2 |
|
---|
3 |
|
---|
4 | import com.example.baza.model.Authentication;
|
---|
5 | import com.example.baza.repository.AuthenticationRepository;
|
---|
6 | import com.example.baza.service.AuthenticationService;
|
---|
7 | import org.springframework.stereotype.Service;
|
---|
8 |
|
---|
9 | import java.util.List;
|
---|
10 | import java.util.Optional;
|
---|
11 |
|
---|
12 | @Service
|
---|
13 | public class AuthenticationServiceImpl implements AuthenticationService {
|
---|
14 | private final AuthenticationRepository authenticationRepository;
|
---|
15 |
|
---|
16 | public AuthenticationServiceImpl(AuthenticationRepository authenticationRepository) {
|
---|
17 | this.authenticationRepository = authenticationRepository;
|
---|
18 | }
|
---|
19 |
|
---|
20 | @Override
|
---|
21 | public List<Authentication> listAll() {
|
---|
22 | return this.authenticationRepository.findAll();
|
---|
23 | }
|
---|
24 |
|
---|
25 | @Override
|
---|
26 | public Optional<Authentication> findById(Integer id) {
|
---|
27 | return this.authenticationRepository.findById(id);
|
---|
28 | }
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.