get User Teams

@Query(value = "SELECT " + TEAM_IDENTIFIER_KEY + " FROM " + TEAMS_KEY + " WHERE " + OWNER_KEY + "=:" + USER_IDENTIFIER_KEY + " ORDER BY " + DATE_KEY + " DESC", nativeQuery = true )
abstract fun getUserTeams(@Param(value = "user_id") owner: String): HashSet<String>

Method to execute the query to get the user's owned teams identifiers

Return

the identifiers of the owned user teams as HashSet of String

Parameters

owner

The identifier of the user