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

    r7fafead r3ded84d  
    11package com.wediscussmovies.project.service.impl;
    22
    3 import com.wediscussmovies.project.model.Genre;
     3import com.wediscussmovies.project.model.*;
    44import com.wediscussmovies.project.repository.GenreRepository;
    55import com.wediscussmovies.project.service.GenreService;
     
    2424    @Override
    2525    public List<Genre> findAllByType(String genre) {
    26         return genreRepository.findAllByGenre(genre);
     26        return genreRepository.findAllByGenreType(genre);
    2727    }
    2828
    2929    @Override
    3030    public Genre save(String genreName) {
    31         Genre genre = new Genre(genreName);
     31       Genre genre = new Genre(genreName);
    3232        return genreRepository.save(genre);
    3333    }
Note: See TracChangeset for help on using the changeset viewer.