Quote:
What do you mean?
sorry, that was spam and I removed it.
Quote:
But I get a Long, Double, Long object, why? A division between long can be a double! How can i change this behaviour?
I'm not sure how you can change that. did you try using casts in the hql? or you could use a resulttransformet, or define a value object for the query and have something like:
Code:
select new Dto(max(stat.durataelaborazione/stat.numeropagine), avg(stat.durataelaborazione/stat.numeropagine), min(stat.durataelaborazione/stat.numeropagine)) ...
(provided you create a Dto having the appropriate constructors; that's what I usually do as I prefer to deal with objects with properties than with arrays of things of different types.)