public interface PrivacyAgreementProtocolDao extends io.geewit.data.jpa.essential.repository.EntityGraphJpaRepository<PrivacyAgreementProtocol,java.lang.Long>, io.geewit.data.jpa.essential.repository.EntityGraphJpaSpecificationExecutor<PrivacyAgreementProtocol>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
deleteByAgreementId(long agreementId) |
java.lang.Long |
findAgreementIdById(long protocolId) |
java.util.List<PrivacyAgreementProtocol> |
findByAgreementId(long agreementId) |
void |
updateOrdinalById(long id,
int ordinal) |
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushcount, exists, findAll, findOnefindAll, findAllfindAll, findAllById, findByIdcount, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save@Transactional(rollbackFor=java.lang.Exception.class)
@Modifying(flushAutomatically=true,
clearAutomatically=true)
@Query(value="delete from PrivacyAgreementProtocol ap where ap.agreementId = :agreementId")
void deleteByAgreementId(@Param(value="agreementId")
long agreementId)
@Query(value="select ap from PrivacyAgreementProtocol ap where ap.agreementId = :agreementId") java.util.List<PrivacyAgreementProtocol> findByAgreementId(@Param(value="agreementId") long agreementId)
@Transactional(rollbackFor=java.lang.Exception.class)
@Modifying(flushAutomatically=true,
clearAutomatically=true)
@Query(value="update PrivacyAgreementProtocol ap set ap.ordinal = :ordinal where ap.id = :id")
void updateOrdinalById(@Param(value="id")
long id,
@Param(value="ordinal")
int ordinal)
@Query(value="select ap.agreementId from PrivacyAgreementProtocol ap where ap.id = :id")
java.lang.Long findAgreementIdById(@Param(value="id")
long protocolId)