public interface ConfigAppPropertiesRepository extends org.springframework.data.jpa.repository.JpaRepository<ConfigAppPropertiesDO,java.lang.Long>
Modifier and Type | Method and Description |
---|---|
ConfigAppPropertiesDO |
findByBusinessKeyActive(java.lang.String key) |
ConfigAppPropertiesDO |
findByBusinessKeyAll(java.lang.String key) |
ConfigAppPropertiesDO |
findByBusinessKeyInactive(java.lang.String key) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
findAll
@Query(value="select dobj from ConfigAppPropertiesDO dobj where dobj.key= ?1 and (dobj.deletedTs is null or dobj.deletedTs > CURRENT_TIMESTAMP) ") ConfigAppPropertiesDO findByBusinessKeyActive(java.lang.String key)
@Query(value="select dobj from ConfigAppPropertiesDO dobj where dobj.key= ?1 and dobj.deletedTs < CURRENT_TIMESTAMP ") ConfigAppPropertiesDO findByBusinessKeyInactive(java.lang.String key)
@Query(value="select dobj from ConfigAppPropertiesDO dobj where dobj.key= ?1") ConfigAppPropertiesDO findByBusinessKeyAll(java.lang.String key)