Package com.espacogeek.geek.repositories
Interface GenreRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<GenreModel,,Integer> org.springframework.data.jpa.repository.JpaRepository<GenreModel,,Integer> org.springframework.data.repository.ListCrudRepository<GenreModel,,Integer> org.springframework.data.repository.ListPagingAndSortingRepository<GenreModel,,Integer> org.springframework.data.repository.PagingAndSortingRepository<GenreModel,,Integer> org.springframework.data.repository.query.QueryByExampleExecutor<GenreModel>,org.springframework.data.repository.Repository<GenreModel,Integer>
@Repository
public interface GenreRepository
extends org.springframework.data.jpa.repository.JpaRepository<GenreModel,Integer>
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByNameIn(List<String> nameGenres) findByMediaId(Integer mediaId) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findAllByNameIn
-
findByMediaId
@Query("SELECT g FROM MediaModel m JOIN m.genre g WHERE m.id = :mediaId") List<GenreModel> findByMediaId(@Param("mediaId") Integer mediaId)
-