Reputation: 587
I want to do a select from table where date = TODAY, on mysql that would be where date > CURDATE()
, how do I do this on a JPA named query?
Upvotes: 26
Views: 59918
Reputation: 100736
That depends on your JPA provider. Hibernate, for example, supports current_date function:
from MyEntity where myDateProperty > current_date
Upvotes: 34