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