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

Location:
src/main/java/com/wediscussmovies/project/repository
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/wediscussmovies/project/repository/DiscussionRepository.java

    r7fafead r3ded84d  
    11package com.wediscussmovies.project.repository;
    22
    3 import com.wediscussmovies.project.model.Discussion;
    43import org.springframework.data.jpa.repository.JpaRepository;
    54import org.springframework.stereotype.Repository;
    65
    76import java.util.List;
     7import com.wediscussmovies.project.model.*;
    88
    99@Repository
  • src/main/java/com/wediscussmovies/project/repository/GenreRepository.java

    r7fafead r3ded84d  
    11package com.wediscussmovies.project.repository;
    22
    3 import com.wediscussmovies.project.model.Genre;
     3import com.wediscussmovies.project.model.*;
    44import org.springframework.data.jpa.repository.JpaRepository;
    55import org.springframework.stereotype.Repository;
     
    99@Repository
    1010public interface GenreRepository extends JpaRepository<Genre, Integer> {
    11     public List<Genre> findAllByGenre(String genre_type);
     11    public List<Genre> findAllByGenreType(String genre);
    1212}
  • src/main/java/com/wediscussmovies/project/repository/MovieRepository.java

    r7fafead r3ded84d  
    11package com.wediscussmovies.project.repository;
    22
    3 import com.wediscussmovies.project.model.Movie;
    43import org.springframework.data.jpa.repository.JpaRepository;
    54import org.springframework.stereotype.Repository;
    65
    76import java.util.List;
     7import com.wediscussmovies.project.model.*;
    88
    99@Repository
  • src/main/java/com/wediscussmovies/project/repository/PersonRepository.java

    r7fafead r3ded84d  
    11package com.wediscussmovies.project.repository;
    22
    3 import com.wediscussmovies.project.model.Person;
     3import com.wediscussmovies.project.model.*;
    44import com.wediscussmovies.project.model.enumerations.PersonType;
    55import org.springframework.data.jpa.repository.JpaRepository;
    6 import org.springframework.data.jpa.repository.Query;
    76import org.springframework.stereotype.Repository;
    87
     
    1211@Repository
    1312public interface PersonRepository extends JpaRepository<Person, Integer> {
    14     public List<Person> findAllByPersonType(PersonType type);
    15     public List<Person> findAllByPersonTypeAndNameLike(PersonType type, String name);
    16     public List<Person> findAllByPersonTypeAndSurnameLike(PersonType type, String surname);
    17     public Optional<Person> findPersonByPerson_idAndPersonType(Integer id, PersonType type);
     13    public List<Person> findAllByType(Character type);
     14    public List<Person> findAllByTypeAndNameLike(Character type, String name);
     15    public List<Person> findAllByTypeAndSurnameLike(Character type, String surname);
     16    public Optional<Person> findPersonByPersonIdAndType(Integer id, Character type);
    1817}
  • src/main/java/com/wediscussmovies/project/repository/ReplyRepository.java

    r7fafead r3ded84d  
    11package com.wediscussmovies.project.repository;
    22
    3 import com.wediscussmovies.project.model.Reply;
    43import org.springframework.data.jpa.repository.JpaRepository;
    54import org.springframework.stereotype.Repository;
     5import com.wediscussmovies.project.model.*;
     6
    67
    78@Repository
  • src/main/java/com/wediscussmovies/project/repository/UserRepository.java

    r7fafead r3ded84d  
    11package com.wediscussmovies.project.repository;
    22
    3 import com.wediscussmovies.project.model.User;
     3import com.wediscussmovies.project.model.*;
    44import org.springframework.data.jpa.repository.JpaRepository;
    55import org.springframework.stereotype.Repository;
    66
    7 import java.util.EnumMap;
    87import java.util.Optional;
    98
Note: See TracChangeset for help on using the changeset viewer.