ObjectDB ObjectDB

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.

edit
delete
#2

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

ObjectDB Support
edit
delete

Reply

To post on this website please sign in.