Hi, I would like to know what's the best way to get the last entry of a table with JPA. In Sql, what I'm looking for would be like:
select id from table order by id desc limit 1
I was thinking about model.count() but that sounds more like a hack than a good solution ;)