2

I am using Hibernate in my Vaadin application and which to retrieve a single Entity from my database. This entity is the one with the most recent datetime. I have been looking if I can use a filter on my JPAContainer which allows me to set a MAX constraint but have had no luck so far.

Can someone explain how I can achieve this MAX constraint and thus retrieve the entity with the most recent datetime?

RazorAlliance192
  • 722
  • 9
  • 23

0 Answers0