Ignore:
Timestamp:
01/18/22 17:18:17 (3 years ago)
Author:
Test <matonikolov77@…>
Branches:
main
Children:
e0ef1b1
Parents:
7fafead
Message:

Model-database resolved bugs for mapping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/wediscussmovies/project/service/impl/MovieServiceImpl.java

    r7fafead r3ded84d  
    11package com.wediscussmovies.project.service.impl;
    22
    3 import com.wediscussmovies.project.model.Movie;
     3import com.wediscussmovies.project.model.*;
    44import com.wediscussmovies.project.repository.MovieRepository;
    55import com.wediscussmovies.project.service.MovieService;
     
    2323
    2424    @Override
    25     public Optional<Movie> findById(Long id) {
     25    public Optional<Movie> findById(Integer id) {
    2626        return movieRepository.findById(1);
    2727    }
     
    3333
    3434    @Override
    35     public void deleteById(Long id) {
    36         movieRepository.deleteById(0);
     35    public void deleteById(Integer id) {
     36        movieRepository.deleteById(id);
    3737    }
    3838
Note: See TracChangeset for help on using the changeset viewer.