Last change
on this file since e097c1c was 1b248e4, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago |
service impl changes
|
-
Property mode
set to
100644
|
File size:
682 bytes
|
Line | |
---|
1 | package com.example.moviezone.service.Impl;
|
---|
2 |
|
---|
3 | import com.example.moviezone.model.Projection;
|
---|
4 | import com.example.moviezone.repository.ProjectionRepository;
|
---|
5 | import com.example.moviezone.service.ProjectionService;
|
---|
6 | import org.springframework.stereotype.Service;
|
---|
7 |
|
---|
8 | import java.util.List;
|
---|
9 |
|
---|
10 | @Service
|
---|
11 | public class ProjectionServiceImpl implements ProjectionService {
|
---|
12 | private final ProjectionRepository projectionRepository;
|
---|
13 |
|
---|
14 | public ProjectionServiceImpl(ProjectionRepository projectionRepository) {
|
---|
15 | this.projectionRepository = projectionRepository;
|
---|
16 | }
|
---|
17 |
|
---|
18 | @Override
|
---|
19 | public List<Projection> findAllProjections() {
|
---|
20 | return projectionRepository.findAll();
|
---|
21 | }
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.