Last change
on this file since fc7ec52 was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 22 months ago |
all files
|
-
Property mode
set to
100644
|
File size:
726 bytes
|
Rev | Line | |
---|
[fc7ec52] | 1 | package com.example.demo.service.ServiceImpl;
|
---|
| 2 |
|
---|
| 3 | import com.example.demo.model.PaymentType;
|
---|
| 4 | import com.example.demo.repository.PaymentTypeRepository;
|
---|
| 5 | import com.example.demo.service.PaymentTypeService;
|
---|
| 6 | import org.springframework.stereotype.Service;
|
---|
| 7 |
|
---|
| 8 | import java.util.Optional;
|
---|
| 9 |
|
---|
| 10 | @Service
|
---|
| 11 | public class PaymentTypeServiceImpl implements PaymentTypeService {
|
---|
| 12 |
|
---|
| 13 | private final PaymentTypeRepository paymentTypeRepository;
|
---|
| 14 |
|
---|
| 15 | public PaymentTypeServiceImpl(PaymentTypeRepository paymentTypeRepository) {
|
---|
| 16 | this.paymentTypeRepository = paymentTypeRepository;
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | @Override
|
---|
| 20 | public Optional<PaymentType> findById(Integer payment_type_id) {
|
---|
| 21 | return this.paymentTypeRepository.findById(payment_type_id);
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.