Interface InterviewContactPersonRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<InterviewContactPerson,java.lang.Integer>,org.springframework.data.jpa.repository.JpaRepository<InterviewContactPerson,java.lang.Integer>,org.springframework.data.repository.PagingAndSortingRepository<InterviewContactPerson,java.lang.Integer>,org.springframework.data.repository.query.QueryByExampleExecutor<InterviewContactPerson>,org.springframework.data.repository.Repository<InterviewContactPerson,java.lang.Integer>
public interface InterviewContactPersonRepository extends org.springframework.data.jpa.repository.JpaRepository<InterviewContactPerson,java.lang.Integer>
Interface to access the interview_contact_person table in the database
-
Method Summary
Modifier and Type Method Description voiddeleteByInterviewIdAndContactPersonId(int interviewId, int contactPersonId)InterviewContactPersonfindFirstByInterviewIdAndContactPersonId(int interviewId, int contactPersonId)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
-
deleteByInterviewIdAndContactPersonId
@Modifying @Query("delete from InterviewContactPerson a where a.interviewId=:interviewId and a.contactPersonId=:contactPersonId") void deleteByInterviewIdAndContactPersonId(@Param("interviewId") int interviewId, @Param("contactPersonId") int contactPersonId) -
findFirstByInterviewIdAndContactPersonId
InterviewContactPerson findFirstByInterviewIdAndContactPersonId(int interviewId, int contactPersonId)
-