Changeset 3ded84d in Git for src/main/java/com/wediscussmovies/project/repository
- Timestamp:
- 01/18/22 17:18:17 (3 years ago)
- Branches:
- main
- Children:
- e0ef1b1
- Parents:
- 7fafead
- 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 1 1 package com.wediscussmovies.project.repository; 2 2 3 import com.wediscussmovies.project.model.Discussion;4 3 import org.springframework.data.jpa.repository.JpaRepository; 5 4 import org.springframework.stereotype.Repository; 6 5 7 6 import java.util.List; 7 import com.wediscussmovies.project.model.*; 8 8 9 9 @Repository -
src/main/java/com/wediscussmovies/project/repository/GenreRepository.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.repository; 2 2 3 import com.wediscussmovies.project.model. Genre;3 import com.wediscussmovies.project.model.*; 4 4 import org.springframework.data.jpa.repository.JpaRepository; 5 5 import org.springframework.stereotype.Repository; … … 9 9 @Repository 10 10 public interface GenreRepository extends JpaRepository<Genre, Integer> { 11 public List<Genre> findAllByGenre (String genre_type);11 public List<Genre> findAllByGenreType(String genre); 12 12 } -
src/main/java/com/wediscussmovies/project/repository/MovieRepository.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.repository; 2 2 3 import com.wediscussmovies.project.model.Movie;4 3 import org.springframework.data.jpa.repository.JpaRepository; 5 4 import org.springframework.stereotype.Repository; 6 5 7 6 import java.util.List; 7 import com.wediscussmovies.project.model.*; 8 8 9 9 @Repository -
src/main/java/com/wediscussmovies/project/repository/PersonRepository.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.repository; 2 2 3 import com.wediscussmovies.project.model. Person;3 import com.wediscussmovies.project.model.*; 4 4 import com.wediscussmovies.project.model.enumerations.PersonType; 5 5 import org.springframework.data.jpa.repository.JpaRepository; 6 import org.springframework.data.jpa.repository.Query;7 6 import org.springframework.stereotype.Repository; 8 7 … … 12 11 @Repository 13 12 public interface PersonRepository extends JpaRepository<Person, Integer> { 14 public List<Person> findAllBy PersonType(PersonTypetype);15 public List<Person> findAllBy PersonTypeAndNameLike(PersonTypetype, String name);16 public List<Person> findAllBy PersonTypeAndSurnameLike(PersonTypetype, String surname);17 public Optional<Person> findPersonByPerson _idAndPersonType(Integer id, PersonTypetype);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); 18 17 } -
src/main/java/com/wediscussmovies/project/repository/ReplyRepository.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.repository; 2 2 3 import com.wediscussmovies.project.model.Reply;4 3 import org.springframework.data.jpa.repository.JpaRepository; 5 4 import org.springframework.stereotype.Repository; 5 import com.wediscussmovies.project.model.*; 6 6 7 7 8 @Repository -
src/main/java/com/wediscussmovies/project/repository/UserRepository.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.repository; 2 2 3 import com.wediscussmovies.project.model. User;3 import com.wediscussmovies.project.model.*; 4 4 import org.springframework.data.jpa.repository.JpaRepository; 5 5 import org.springframework.stereotype.Repository; 6 6 7 import java.util.EnumMap;8 7 import java.util.Optional; 9 8
Note:
See TracChangeset
for help on using the changeset viewer.