greetings all, i got this exception in the following method and i don’t know why:
List<Date> temps = getCurrentSession()
.createQuery(
"select distinct date(uploadDate) from FileDomain where projectId=:projectId"
+ " and entityId not in(select fileId from FileVersion) order by date(uploadDate) desc ")
.setLong("projectId", projectId).list();
try removing the
date()fromdistinct date(uploadDate)so it is justselect distinct uploadDate from...most likely problem is that your dialect does not configure the
datefunction, so if it’s not required, remove it.