get
Group
By
Name
@Query(value = ""SELECT * FROM " + GROUPS_KEY + " WHERE " + AUTHOR_KEY + "=:" + AUTHOR_KEY
+ " AND " + NAME_KEY + "=:" + NAME_KEY",
nativeQuery = true
)
Method to execute the query to select a Group by its name
Return
the group as Group
Parameters
userId
The user identifier
name
: the name of the group to fetch