source: source/MovieZilla-master/src/main/java/com/example/demo/service/ServiceImpl/PaymentTypeServiceImpl.java@ fc7ec52

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
Line 
1package com.example.demo.service.ServiceImpl;
2
3import com.example.demo.model.PaymentType;
4import com.example.demo.repository.PaymentTypeRepository;
5import com.example.demo.service.PaymentTypeService;
6import org.springframework.stereotype.Service;
7
8import java.util.Optional;
9
10@Service
11public 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.