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/ProjectionServiceImpl.java

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