@Test public void getFreeGroups() { assertNotNull(repo.getFreeGroups("paperone")); assertTrue(repo.getFreeGroups("paperone").size() == 3); }
@SuppressWarnings("unchecked") public List<GroupDTO> getFreeGroups(String username) { return queryForList("getFreeGroups", username); }
GroupRepositoryIbatis extends SqlMapClientTemplate implements GroupRepository { @SuppressWarnings("unchecked") public List<GroupDTO> getFreeGroups(String username) { return queryForList("getFreeGroups", username); } }
GroupRepositoryIbatis extends SqlMapClientTemplate implements GroupRepository { @SuppressWarnings("unchecked") public List<GroupDTO> getFreeGroups(String username) { return queryForList("getFreeGroups", username); }  }
GroupRepositoryIbatis extends SqlMapClientTemplate implements GroupRepository { @SuppressWarnings("unchecked") public List<GroupDTO> getFreeGroups(String username) { return queryForList("getFreeGroups", username); }  @Autowired @Override void setSqlMapClient(@Qualifier("sqlMapClient") SqlMapClient sqlMapClient); @SuppressWarnings("unchecked") List<GroupDTO> getUserGroupsWithAutorities(String username); Boolean hasUsers(Integer id); @SuppressWarnings("unchecked") List<String> getGroupUsernames(Integer id); Boolean deleteUserGroups(String username); @SuppressWarnings("unchecked") List<GroupDTO> getFreeGroups(String username); GroupDTO getGroup(Integer id); @SuppressWarnings("unchecked") List<GroupDTO> getGroups(); Boolean saveGroups(final String username, final List<Integer> groups); @SuppressWarnings("unchecked") List<GroupDTO> getGroups(Pager pager); Integer getGroupsNumber(); @SuppressWarnings("unchecked") List<GroupDTO> getUserGroups(String username); Boolean removeGroup(Integer id); Boolean save(GroupDTO group); }
GroupRepositoryIbatis extends SqlMapClientTemplate implements GroupRepository { @SuppressWarnings("unchecked") public List<GroupDTO> getFreeGroups(String username) { return queryForList("getFreeGroups", username); }  @Autowired @Override void setSqlMapClient(@Qualifier("sqlMapClient") SqlMapClient sqlMapClient); @SuppressWarnings("unchecked") List<GroupDTO> getUserGroupsWithAutorities(String username); Boolean hasUsers(Integer id); @SuppressWarnings("unchecked") List<String> getGroupUsernames(Integer id); Boolean deleteUserGroups(String username); @SuppressWarnings("unchecked") List<GroupDTO> getFreeGroups(String username); GroupDTO getGroup(Integer id); @SuppressWarnings("unchecked") List<GroupDTO> getGroups(); Boolean saveGroups(final String username, final List<Integer> groups); @SuppressWarnings("unchecked") List<GroupDTO> getGroups(Pager pager); Integer getGroupsNumber(); @SuppressWarnings("unchecked") List<GroupDTO> getUserGroups(String username); Boolean removeGroup(Integer id); Boolean save(GroupDTO group);  }