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.
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.
Please try build 2.5.2_06 that should fix this regression (of casting to Date).