Hibernate + Criteria query - how to select expired date which expires in next 30 days

前端 未结 0 524
生来不讨喜
生来不讨喜 2021-01-30 05:18

I have simple entity:

class Entity {
   int id;
   Date expiredDate;
} 

How select all entities which expires in next 30 days? Thanks for help.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题