vendredi 10 juillet 2020

How to order results by random in Ebean?

In MySQL I can use the RAND() function, but is there any way I can accomplish the same thing using the Ebean ORM? Is there an equivalent in EBean to this:

SELECT Id
FROM table1
ORDER BY RAND()



Aucun commentaire:

Enregistrer un commentaire