Interface QuestionRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Question,java.lang.Integer>,org.springframework.data.jpa.repository.JpaRepository<Question,java.lang.Integer>,org.springframework.data.repository.PagingAndSortingRepository<Question,java.lang.Integer>,org.springframework.data.repository.query.QueryByExampleExecutor<Question>,org.springframework.data.repository.Repository<Question,java.lang.Integer>
public interface QuestionRepository extends org.springframework.data.jpa.repository.JpaRepository<Question,java.lang.Integer>
Interface to access the question table in the database
-
Method Summary
Modifier and Type Method Description java.util.List<Question>getQuestionsByFaccritId(int faccritId)Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
-
Method Details
-
getQuestionsByFaccritId
@Query("select a from Question a where a.faccritId=:faccritId") java.util.List<Question> getQuestionsByFaccritId(@Param("faccritId") int faccritId)
-