Specify Ordering to a DAO Method
问题 Suppose I have the following DAO interface: public interface CountryData { /** * Get All Countries. * * @return A Collection of Countries. * @throws DataAccessException Thrown if there is an error communicating with the data store. The Exception's * Cause Exception can usually be examined to determine the exact nature of the * error. * @since 1.0.0 */ public List<Country> getAll(); } Further suppose that I am abstracting this DAO because I might provide 2 implementations, one for a database