HQL select sum and time group by time unit (hour/day/month) and
问题 I have a table like this: COLUMN TYPE ------------------------------ ID INTEGER VALUE INTEGER TIME TIMESTAMP How can I write query with HQL selecting sum of value column groupped by time unit(f.e. groupped by day) and selecting this time unit as a second column. I have tried to do it and got something like this: but there is no parsedatetime function in HQL so I have no idea how can I get the proper query now. select sum(value), parsedatetime(day(time) || '.' || month(time) || '.' || year