Interface AuditContactPersonRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<AuditContactPerson,java.lang.Integer>,org.springframework.data.jpa.repository.JpaRepository<AuditContactPerson,java.lang.Integer>,org.springframework.data.repository.PagingAndSortingRepository<AuditContactPerson,java.lang.Integer>,org.springframework.data.repository.query.QueryByExampleExecutor<AuditContactPerson>,org.springframework.data.repository.Repository<AuditContactPerson,java.lang.Integer>
public interface AuditContactPersonRepository extends org.springframework.data.jpa.repository.JpaRepository<AuditContactPerson,java.lang.Integer>
Interface to access the answer_contact_person table in the database
-
Method Summary
Modifier and Type Method Description voiddeleteByAuditIdAndContactPersonId(int auditId, int contactPersonId)AuditContactPersonfindFirstByAuditIdAndContactPersonId(int auditId, 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
-
deleteByAuditIdAndContactPersonId
@Modifying @Query("delete from AuditContactPerson a where a.auditId=:auditId and a.contactPersonId=:contactPersonId") void deleteByAuditIdAndContactPersonId(@Param("auditId") int auditId, @Param("contactPersonId") int contactPersonId) -
findFirstByAuditIdAndContactPersonId
-