Created
July 26, 2016 20:19
-
-
Save mkheck/df38b5b847e476ee35e3a6576bf31e78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RepositoryRestResource | |
interface QuoteRepository extends CrudRepository<Quote, Long> { | |
@Query("select q from Quote q order by RAND()") | |
public List<Quote> getQuotesRandomOrder(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment