Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 QueryDSL - 除了使用 .between 之外,有没有办法从时间戳中按日期选择行?像这样的查询:
其中转换(日期,mytimestamp)='2013-02-28'
如果使用 Querydsl SQL,则可以使用 between 或自定义表达式
像这样的东西
DateExpression<Date> converted = DateTemplate.create(Date.class, "convert(date, {0})", mytimestamp);