get User Owned Links

@Query(value = "SELECT * FROM " + LINKS_KEY + _WHERE_ + OWNER_KEY + "=:" + USER_IDENTIFIER_KEY + " AND dtype='" + LINK_KEY + "'" + " ORDER BY " + DATE_KEY + " DESC", nativeQuery = true )
abstract fun getUserOwnedLinks(@Param(value = "user_id") userId: String, pageable: Pageable): List<RefyLink>

Method to execute the query to get the user's owned links

Return

the user links as List of RefyLink

Parameters

userId

The identifier of the user

pageable

The parameters to paginate the query