JPA Date Arithmetic?

前端 未结 1 763
温柔的废话
温柔的废话 2021-01-18 13:36

Is it possible to perform date arithmetic using JPA/Hibernate? For example, I have an entity with a java.util.Date field indicating when the row was created. Is it possibl

相关标签:
1条回答
  • 2021-01-18 14:00

    HQL does have date expressions like second(...), minute(...), hour(...), day(...), month(...), and year(...) but standard JPQL doesn't have such functions.

    0 讨论(0)
提交回复
热议问题