public interface TeamDao extends org.springframework.data.jpa.repository.JpaRepository<org.squashtest.tm.domain.users.Team,Long>, CustomTeamDao
Teams.| Modifier and Type | Method and Description |
|---|---|
long |
countAssociatedTeams(long userId)
Will count the number of Teams where the concerned user is member.
|
List<org.squashtest.tm.domain.users.Team> |
findAllByName(String name)
Find all teams with name equals to the given name param.
|
List<org.squashtest.tm.domain.users.Team> |
findAllNonAssociatedTeams(long userId)
Will return all
Teams that don't have the concerned user as a member. |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllcount, delete, delete, delete, deleteAll, exists, findOne, savecount, exists, findAll, findOnefindSortedAssociatedTeams, findSortedTeamsList<org.squashtest.tm.domain.users.Team> findAllByName(String name)
@Query long countAssociatedTeams(long userId)
userId - : id of the concerned user@Query List<org.squashtest.tm.domain.users.Team> findAllNonAssociatedTeams(long userId)
Teams that don't have the concerned user as a member.userId - : the id of the concerned userCopyright © 2010–2017 Henix, henix.fr. All rights reserved.