How to get max date in Hibernate?

Hi,

Tell the code to get the max date in Hibernate?

Thanks

View Answers

January 22, 2014 at 2:15 PM

Hi,

You can use the projection in Hibernate for getting the max date.

Here is example code:

Projections.max("addmision_date")

Check the complete source code at Hibernate Criteria Max Date Example.

Thanks









Related Tutorials/Questions & Answers:
Advertisements