How to fetch a random entry with Hibernate

Fri, 27 Aug 2010 21:32:12 +0200

I recently found myself in the situation where I needed Hibernate to query a single, random entry from a table of Picture entities.