Home » Support » Forum » In version 2.5.2_05 does not work greatest by Date

In version 2.5.2_05 does not work greatest by Date

#1

In earlier versions this query worked fine. In version 2.5.2_05 does not work

.orderBy(cb.desc(cb.greatest(root.get("createDate").as(Date.class)))).distinct(true)

Thank you for your help.

#2

Please try build 2.5.2_06 that should fix this regression (of casting to Date).

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login