findByType

@Query(value = "select t from TaskEntity t where t.type = :type and t.ownerTenantId = :tenantId")
abstract fun findByType(tenantId: Int, type: TaskTypeEntity): List<TaskEntity>