Last change
on this file since bc39b15 was ed20c2c, checked in by HumaSejdini <humasejdini12@…>, 2 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
871 bytes
|
Line | |
---|
1 | package com.example.baza.service.impl;
|
---|
2 |
|
---|
3 |
|
---|
4 | import com.example.baza.model.Chlen2;
|
---|
5 | import com.example.baza.repository.ChlenRepository;
|
---|
6 | import com.example.baza.service.ChlenService;
|
---|
7 | import org.springframework.stereotype.Repository;
|
---|
8 | import java.util.*;
|
---|
9 | @Repository
|
---|
10 | public class ChlenServiceImpl implements ChlenService {
|
---|
11 | private final ChlenRepository chlenRepository;
|
---|
12 |
|
---|
13 | public ChlenServiceImpl(ChlenRepository chlenRepository ) {
|
---|
14 | this.chlenRepository = chlenRepository;
|
---|
15 |
|
---|
16 | }
|
---|
17 |
|
---|
18 | @Override
|
---|
19 | public List<Chlen2> findAll() {
|
---|
20 | return this.chlenRepository.findAll();
|
---|
21 | }
|
---|
22 |
|
---|
23 | @Override
|
---|
24 | public Chlen2 findByBroj(Integer broj) {
|
---|
25 | return this.chlenRepository.findByBroj(broj);
|
---|
26 | }
|
---|
27 |
|
---|
28 | @Override
|
---|
29 | public Chlen2 delete(Integer broj) {
|
---|
30 | Chlen2 chlen=this.findByBroj(broj);
|
---|
31 | this.chlenRepository.delete(chlen);
|
---|
32 | return chlen;
|
---|
33 | }
|
---|
34 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.