@ SuppressWarnings ( "unchecked" ) public List < LdapUser > getLdapUsers ( ) { final Query query = pm . newQuery ( LdapUser . class ) ; query . setOrdering ( "username asc" ) ; return ( List < LdapUser > ) query . execute ( ) ; }
Returns a complete list of all LdapUser objects in ascending order by username .