Ignore:
Timestamp:
02/02/23 22:46:30 (22 months ago)
Author:
milamihajlovska <mila.mihajlovska01@…>
Branches:
master
Children:
ac25203
Parents:
f60cb20
Message:

service impl changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/service/Impl/CustomerServiceImpl.java

    rf60cb20 r1b248e4  
    22
    33import com.example.moviezone.model.Customer;
     4import com.example.moviezone.repository.CustomerRepository;
    45import com.example.moviezone.service.CustomerService;
    56import org.springframework.stereotype.Service;
     
    910@Service
    1011public class CustomerServiceImpl implements CustomerService {
     12    private final CustomerRepository customerRepository;
     13
     14    public CustomerServiceImpl(CustomerRepository customerRepository) {
     15        this.customerRepository = customerRepository;
     16    }
     17
    1118    @Override
    1219    public List<Customer> findAllCustomers() {
    13         return null;
     20        return customerRepository.findAll();
    1421    }
    1522}
Note: See TracChangeset for help on using the changeset viewer.