Changeset 7a0bf79 in Git for src/main/java/com/wediscussmovies/project/repository
- Timestamp:
- 01/16/22 03:40:31 (3 years ago)
- Branches:
- main
- Children:
- 2a5d6a3
- Parents:
- 839f96a
- Location:
- src/main/java/com/wediscussmovies/project/repository
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/wediscussmovies/project/repository/GenreRepository.java
r839f96a r7a0bf79 5 5 import org.springframework.stereotype.Repository; 6 6 7 import java.util.List; 8 7 9 @Repository 8 10 public interface GenreRepository extends JpaRepository<Genre, Integer> { 11 public List<Genre> findAllByGenre_typeLike(String genre_type); 9 12 } -
src/main/java/com/wediscussmovies/project/repository/PersonRepository.java
r839f96a r7a0bf79 2 2 3 3 import com.wediscussmovies.project.model.Person; 4 import com.wediscussmovies.project.model.PersonType; 4 5 import org.springframework.data.jpa.repository.JpaRepository; 6 import org.springframework.data.jpa.repository.Query; 5 7 import org.springframework.stereotype.Repository; 8 9 import java.util.List; 10 import java.util.Optional; 6 11 7 12 @Repository 8 13 public interface PersonRepository extends JpaRepository<Person, Integer> { 14 public List<Person> findAllByPersonType(PersonType type); 15 public Optional<Person> findPersonByPerson_idAndPersonType(Integer id, PersonType type); 9 16 }
Note:
See TracChangeset
for help on using the changeset viewer.