getUserTeams

@Query(value = ""SELECT " + TEAM_IDENTIFIER_KEY + " FROM " + TEAMS_KEY + " WHERE " + OWNER_KEY + "=:" + USER_IDENTIFIER_KEY", 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